io.envoyproxy.envoy.config.rbac.v3.Principal Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/rbac/v3/rbac.proto
// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.config.rbac.v3;
/**
*
* Principal defines an identity or a group of identities for a downstream
* subject.
* [#next-free-field: 13]
*
*
* Protobuf type {@code envoy.config.rbac.v3.Principal}
*/
public final class Principal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.rbac.v3.Principal)
PrincipalOrBuilder {
private static final long serialVersionUID = 0L;
// Use Principal.newBuilder() to construct.
private Principal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Principal() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Principal();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.rbac.v3.Principal.class, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder.class);
}
public interface SetOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.rbac.v3.Principal.Set)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
java.util.List
getIdsList();
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.config.rbac.v3.Principal getIds(int index);
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
int getIdsCount();
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
java.util.List extends io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder>
getIdsOrBuilderList();
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder getIdsOrBuilder(
int index);
}
/**
*
* Used in the ``and_ids`` and ``or_ids`` fields in the ``identifier`` oneof.
* Depending on the context, each are applied with the associated behavior.
*
*
* Protobuf type {@code envoy.config.rbac.v3.Principal.Set}
*/
public static final class Set extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.rbac.v3.Principal.Set)
SetOrBuilder {
private static final long serialVersionUID = 0L;
// Use Set.newBuilder() to construct.
private Set(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Set() {
ids_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Set();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Set_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Set_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.rbac.v3.Principal.Set.class, io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder.class);
}
public static final int IDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List ids_;
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List getIdsList() {
return ids_;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder>
getIdsOrBuilderList() {
return ids_;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public int getIdsCount() {
return ids_.size();
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal getIds(int index) {
return ids_.get(index);
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder getIdsOrBuilder(
int index) {
return ids_.get(index);
}
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 {
for (int i = 0; i < ids_.size(); i++) {
output.writeMessage(1, ids_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < ids_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, ids_.get(i));
}
size += getUnknownFields().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.rbac.v3.Principal.Set)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.rbac.v3.Principal.Set other = (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) obj;
if (!getIdsList()
.equals(other.getIdsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getIdsCount() > 0) {
hash = (37 * hash) + IDS_FIELD_NUMBER;
hash = (53 * hash) + getIdsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set 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.rbac.v3.Principal.Set parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set 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.rbac.v3.Principal.Set parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set 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.rbac.v3.Principal.Set parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set 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.rbac.v3.Principal.Set parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set 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.rbac.v3.Principal.Set 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;
}
/**
*
* Used in the ``and_ids`` and ``or_ids`` fields in the ``identifier`` oneof.
* Depending on the context, each are applied with the associated behavior.
*
*
* Protobuf type {@code envoy.config.rbac.v3.Principal.Set}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3.Principal.Set)
io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Set_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Set_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.rbac.v3.Principal.Set.class, io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.rbac.v3.Principal.Set.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (idsBuilder_ == null) {
ids_ = java.util.Collections.emptyList();
} else {
ids_ = null;
idsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Set_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set build() {
io.envoyproxy.envoy.config.rbac.v3.Principal.Set result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set buildPartial() {
io.envoyproxy.envoy.config.rbac.v3.Principal.Set result = new io.envoyproxy.envoy.config.rbac.v3.Principal.Set(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.config.rbac.v3.Principal.Set result) {
if (idsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
ids_ = java.util.Collections.unmodifiableList(ids_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ids_ = ids_;
} else {
result.ids_ = idsBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.config.rbac.v3.Principal.Set result) {
int from_bitField0_ = bitField0_;
}
@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.rbac.v3.Principal.Set) {
return mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Principal.Set)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3.Principal.Set other) {
if (other == io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance()) return this;
if (idsBuilder_ == null) {
if (!other.ids_.isEmpty()) {
if (ids_.isEmpty()) {
ids_ = other.ids_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdsIsMutable();
ids_.addAll(other.ids_);
}
onChanged();
}
} else {
if (!other.ids_.isEmpty()) {
if (idsBuilder_.isEmpty()) {
idsBuilder_.dispose();
idsBuilder_ = null;
ids_ = other.ids_;
bitField0_ = (bitField0_ & ~0x00000001);
idsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIdsFieldBuilder() : null;
} else {
idsBuilder_.addAllMessages(other.ids_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.envoyproxy.envoy.config.rbac.v3.Principal m =
input.readMessage(
io.envoyproxy.envoy.config.rbac.v3.Principal.parser(),
extensionRegistry);
if (idsBuilder_ == null) {
ensureIdsIsMutable();
ids_.add(m);
} else {
idsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List ids_ =
java.util.Collections.emptyList();
private void ensureIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
ids_ = new java.util.ArrayList(ids_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder> idsBuilder_;
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public java.util.List getIdsList() {
if (idsBuilder_ == null) {
return java.util.Collections.unmodifiableList(ids_);
} else {
return idsBuilder_.getMessageList();
}
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public int getIdsCount() {
if (idsBuilder_ == null) {
return ids_.size();
} else {
return idsBuilder_.getCount();
}
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.rbac.v3.Principal getIds(int index) {
if (idsBuilder_ == null) {
return ids_.get(index);
} else {
return idsBuilder_.getMessage(index);
}
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder setIds(
int index, io.envoyproxy.envoy.config.rbac.v3.Principal value) {
if (idsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.set(index, value);
onChanged();
} else {
idsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder setIds(
int index, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder builderForValue) {
if (idsBuilder_ == null) {
ensureIdsIsMutable();
ids_.set(index, builderForValue.build());
onChanged();
} else {
idsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder addIds(io.envoyproxy.envoy.config.rbac.v3.Principal value) {
if (idsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.add(value);
onChanged();
} else {
idsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder addIds(
int index, io.envoyproxy.envoy.config.rbac.v3.Principal value) {
if (idsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.add(index, value);
onChanged();
} else {
idsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder addIds(
io.envoyproxy.envoy.config.rbac.v3.Principal.Builder builderForValue) {
if (idsBuilder_ == null) {
ensureIdsIsMutable();
ids_.add(builderForValue.build());
onChanged();
} else {
idsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder addIds(
int index, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder builderForValue) {
if (idsBuilder_ == null) {
ensureIdsIsMutable();
ids_.add(index, builderForValue.build());
onChanged();
} else {
idsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder addAllIds(
java.lang.Iterable extends io.envoyproxy.envoy.config.rbac.v3.Principal> values) {
if (idsBuilder_ == null) {
ensureIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ids_);
onChanged();
} else {
idsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder clearIds() {
if (idsBuilder_ == null) {
ids_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
idsBuilder_.clear();
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public Builder removeIds(int index) {
if (idsBuilder_ == null) {
ensureIdsIsMutable();
ids_.remove(index);
onChanged();
} else {
idsBuilder_.remove(index);
}
return this;
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.rbac.v3.Principal.Builder getIdsBuilder(
int index) {
return getIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder getIdsOrBuilder(
int index) {
if (idsBuilder_ == null) {
return ids_.get(index); } else {
return idsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder>
getIdsOrBuilderList() {
if (idsBuilder_ != null) {
return idsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ids_);
}
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.rbac.v3.Principal.Builder addIdsBuilder() {
return getIdsFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance());
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.rbac.v3.Principal.Builder addIdsBuilder(
int index) {
return getIdsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance());
}
/**
* repeated .envoy.config.rbac.v3.Principal ids = 1 [(.validate.rules) = { ... }
*/
public java.util.List
getIdsBuilderList() {
return getIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder>
getIdsFieldBuilder() {
if (idsBuilder_ == null) {
idsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder>(
ids_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
ids_ = null;
}
return idsBuilder_;
}
@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.rbac.v3.Principal.Set)
}
// @@protoc_insertion_point(class_scope:envoy.config.rbac.v3.Principal.Set)
private static final io.envoyproxy.envoy.config.rbac.v3.Principal.Set DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3.Principal.Set();
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Set getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Set parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.rbac.v3.Principal.Set getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AuthenticatedOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.rbac.v3.Principal.Authenticated)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
* @return Whether the principalName field is set.
*/
boolean hasPrincipalName();
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
* @return The principalName.
*/
io.envoyproxy.envoy.type.matcher.v3.StringMatcher getPrincipalName();
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getPrincipalNameOrBuilder();
}
/**
*
* Authentication attributes for a downstream.
*
*
* Protobuf type {@code envoy.config.rbac.v3.Principal.Authenticated}
*/
public static final class Authenticated extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.rbac.v3.Principal.Authenticated)
AuthenticatedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Authenticated.newBuilder() to construct.
private Authenticated(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Authenticated() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Authenticated();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Authenticated_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Authenticated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.class, io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.Builder.class);
}
private int bitField0_;
public static final int PRINCIPAL_NAME_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.type.matcher.v3.StringMatcher principalName_;
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
* @return Whether the principalName field is set.
*/
@java.lang.Override
public boolean hasPrincipalName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
* @return The principalName.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.StringMatcher getPrincipalName() {
return principalName_ == null ? io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance() : principalName_;
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getPrincipalNameOrBuilder() {
return principalName_ == null ? io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance() : principalName_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getPrincipalName());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPrincipalName());
}
size += getUnknownFields().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.rbac.v3.Principal.Authenticated)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated other = (io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) obj;
if (hasPrincipalName() != other.hasPrincipalName()) return false;
if (hasPrincipalName()) {
if (!getPrincipalName()
.equals(other.getPrincipalName())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPrincipalName()) {
hash = (37 * hash) + PRINCIPAL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPrincipalName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated 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.rbac.v3.Principal.Authenticated parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated 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.rbac.v3.Principal.Authenticated parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated 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.rbac.v3.Principal.Authenticated parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated 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.rbac.v3.Principal.Authenticated parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated 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.rbac.v3.Principal.Authenticated 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;
}
/**
*
* Authentication attributes for a downstream.
*
*
* Protobuf type {@code envoy.config.rbac.v3.Principal.Authenticated}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3.Principal.Authenticated)
io.envoyproxy.envoy.config.rbac.v3.Principal.AuthenticatedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Authenticated_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Authenticated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.class, io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPrincipalNameFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
principalName_ = null;
if (principalNameBuilder_ != null) {
principalNameBuilder_.dispose();
principalNameBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_Authenticated_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated build() {
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated buildPartial() {
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated result = new io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.principalName_ = principalNameBuilder_ == null
? principalName_
: principalNameBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.rbac.v3.Principal.Authenticated) {
return mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated other) {
if (other == io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance()) return this;
if (other.hasPrincipalName()) {
mergePrincipalName(other.getPrincipalName());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
input.readMessage(
getPrincipalNameFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.type.matcher.v3.StringMatcher principalName_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder> principalNameBuilder_;
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
* @return Whether the principalName field is set.
*/
public boolean hasPrincipalName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
* @return The principalName.
*/
public io.envoyproxy.envoy.type.matcher.v3.StringMatcher getPrincipalName() {
if (principalNameBuilder_ == null) {
return principalName_ == null ? io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance() : principalName_;
} else {
return principalNameBuilder_.getMessage();
}
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
public Builder setPrincipalName(io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) {
if (principalNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
principalName_ = value;
} else {
principalNameBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
public Builder setPrincipalName(
io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder builderForValue) {
if (principalNameBuilder_ == null) {
principalName_ = builderForValue.build();
} else {
principalNameBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
public Builder mergePrincipalName(io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) {
if (principalNameBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
principalName_ != null &&
principalName_ != io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance()) {
getPrincipalNameBuilder().mergeFrom(value);
} else {
principalName_ = value;
}
} else {
principalNameBuilder_.mergeFrom(value);
}
if (principalName_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
public Builder clearPrincipalName() {
bitField0_ = (bitField0_ & ~0x00000001);
principalName_ = null;
if (principalNameBuilder_ != null) {
principalNameBuilder_.dispose();
principalNameBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
public io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder getPrincipalNameBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPrincipalNameFieldBuilder().getBuilder();
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
public io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getPrincipalNameOrBuilder() {
if (principalNameBuilder_ != null) {
return principalNameBuilder_.getMessageOrBuilder();
} else {
return principalName_ == null ?
io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance() : principalName_;
}
}
/**
*
* The name of the principal. If set, The URI SAN or DNS SAN in that order
* is used from the certificate, otherwise the subject field is used. If
* unset, it applies to any user that is authenticated.
*
*
* .envoy.type.matcher.v3.StringMatcher principal_name = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder>
getPrincipalNameFieldBuilder() {
if (principalNameBuilder_ == null) {
principalNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder>(
getPrincipalName(),
getParentForChildren(),
isClean());
principalName_ = null;
}
return principalNameBuilder_;
}
@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.rbac.v3.Principal.Authenticated)
}
// @@protoc_insertion_point(class_scope:envoy.config.rbac.v3.Principal.Authenticated)
private static final io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated();
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Authenticated parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.rbac.v3.Principal.Authenticated getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int identifierCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object identifier_;
public enum IdentifierCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
AND_IDS(1),
OR_IDS(2),
ANY(3),
AUTHENTICATED(4),
@java.lang.Deprecated SOURCE_IP(5),
DIRECT_REMOTE_IP(10),
REMOTE_IP(11),
HEADER(6),
URL_PATH(9),
METADATA(7),
FILTER_STATE(12),
NOT_ID(8),
IDENTIFIER_NOT_SET(0);
private final int value;
private IdentifierCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdentifierCase valueOf(int value) {
return forNumber(value);
}
public static IdentifierCase forNumber(int value) {
switch (value) {
case 1: return AND_IDS;
case 2: return OR_IDS;
case 3: return ANY;
case 4: return AUTHENTICATED;
case 5: return SOURCE_IP;
case 10: return DIRECT_REMOTE_IP;
case 11: return REMOTE_IP;
case 6: return HEADER;
case 9: return URL_PATH;
case 7: return METADATA;
case 12: return FILTER_STATE;
case 8: return NOT_ID;
case 0: return IDENTIFIER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public IdentifierCase
getIdentifierCase() {
return IdentifierCase.forNumber(
identifierCase_);
}
public static final int AND_IDS_FIELD_NUMBER = 1;
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
* @return Whether the andIds field is set.
*/
@java.lang.Override
public boolean hasAndIds() {
return identifierCase_ == 1;
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
* @return The andIds.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set getAndIds() {
if (identifierCase_ == 1) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder getAndIdsOrBuilder() {
if (identifierCase_ == 1) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
public static final int OR_IDS_FIELD_NUMBER = 2;
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
* @return Whether the orIds field is set.
*/
@java.lang.Override
public boolean hasOrIds() {
return identifierCase_ == 2;
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
* @return The orIds.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set getOrIds() {
if (identifierCase_ == 2) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder getOrIdsOrBuilder() {
if (identifierCase_ == 2) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
public static final int ANY_FIELD_NUMBER = 3;
/**
*
* When any is set, it matches any downstream.
*
*
* bool any = 3 [(.validate.rules) = { ... }
* @return Whether the any field is set.
*/
@java.lang.Override
public boolean hasAny() {
return identifierCase_ == 3;
}
/**
*
* When any is set, it matches any downstream.
*
*
* bool any = 3 [(.validate.rules) = { ... }
* @return The any.
*/
@java.lang.Override
public boolean getAny() {
if (identifierCase_ == 3) {
return (java.lang.Boolean) identifier_;
}
return false;
}
public static final int AUTHENTICATED_FIELD_NUMBER = 4;
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
* @return Whether the authenticated field is set.
*/
@java.lang.Override
public boolean hasAuthenticated() {
return identifierCase_ == 4;
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
* @return The authenticated.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated getAuthenticated() {
if (identifierCase_ == 4) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance();
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.AuthenticatedOrBuilder getAuthenticatedOrBuilder() {
if (identifierCase_ == 4) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance();
}
public static final int SOURCE_IP_FIELD_NUMBER = 5;
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.rbac.v3.Principal.source_ip is deprecated.
* See envoy/config/rbac/v3/rbac.proto;l=331
* @return Whether the sourceIp field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasSourceIp() {
return identifierCase_ == 5;
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.rbac.v3.Principal.source_ip is deprecated.
* See envoy/config/rbac/v3/rbac.proto;l=331
* @return The sourceIp.
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.CidrRange getSourceIp() {
if (identifierCase_ == 5) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder getSourceIpOrBuilder() {
if (identifierCase_ == 5) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
public static final int DIRECT_REMOTE_IP_FIELD_NUMBER = 10;
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
* @return Whether the directRemoteIp field is set.
*/
@java.lang.Override
public boolean hasDirectRemoteIp() {
return identifierCase_ == 10;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
* @return The directRemoteIp.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.CidrRange getDirectRemoteIp() {
if (identifierCase_ == 10) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder getDirectRemoteIpOrBuilder() {
if (identifierCase_ == 10) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
public static final int REMOTE_IP_FIELD_NUMBER = 11;
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
* @return Whether the remoteIp field is set.
*/
@java.lang.Override
public boolean hasRemoteIp() {
return identifierCase_ == 11;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
* @return The remoteIp.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.CidrRange getRemoteIp() {
if (identifierCase_ == 11) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder getRemoteIpOrBuilder() {
if (identifierCase_ == 11) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
public static final int HEADER_FIELD_NUMBER = 6;
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return identifierCase_ == 6;
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
* @return The header.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.route.v3.HeaderMatcher getHeader() {
if (identifierCase_ == 6) {
return (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_;
}
return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance();
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder getHeaderOrBuilder() {
if (identifierCase_ == 6) {
return (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_;
}
return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance();
}
public static final int URL_PATH_FIELD_NUMBER = 9;
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
* @return Whether the urlPath field is set.
*/
@java.lang.Override
public boolean hasUrlPath() {
return identifierCase_ == 9;
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
* @return The urlPath.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.PathMatcher getUrlPath() {
if (identifierCase_ == 9) {
return (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance();
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder getUrlPathOrBuilder() {
if (identifierCase_ == 9) {
return (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance();
}
public static final int METADATA_FIELD_NUMBER = 7;
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return identifierCase_ == 7;
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
* @return The metadata.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher getMetadata() {
if (identifierCase_ == 7) {
return (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance();
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder getMetadataOrBuilder() {
if (identifierCase_ == 7) {
return (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance();
}
public static final int FILTER_STATE_FIELD_NUMBER = 12;
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
* @return Whether the filterState field is set.
*/
@java.lang.Override
public boolean hasFilterState() {
return identifierCase_ == 12;
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
* @return The filterState.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher getFilterState() {
if (identifierCase_ == 12) {
return (io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.getDefaultInstance();
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcherOrBuilder getFilterStateOrBuilder() {
if (identifierCase_ == 12) {
return (io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.getDefaultInstance();
}
public static final int NOT_ID_FIELD_NUMBER = 8;
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
* @return Whether the notId field is set.
*/
@java.lang.Override
public boolean hasNotId() {
return identifierCase_ == 8;
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
* @return The notId.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal getNotId() {
if (identifierCase_ == 8) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance();
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder getNotIdOrBuilder() {
if (identifierCase_ == 8) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.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 (identifierCase_ == 1) {
output.writeMessage(1, (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_);
}
if (identifierCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_);
}
if (identifierCase_ == 3) {
output.writeBool(
3, (boolean)((java.lang.Boolean) identifier_));
}
if (identifierCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_);
}
if (identifierCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_);
}
if (identifierCase_ == 6) {
output.writeMessage(6, (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_);
}
if (identifierCase_ == 7) {
output.writeMessage(7, (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_);
}
if (identifierCase_ == 8) {
output.writeMessage(8, (io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_);
}
if (identifierCase_ == 9) {
output.writeMessage(9, (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_);
}
if (identifierCase_ == 10) {
output.writeMessage(10, (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_);
}
if (identifierCase_ == 11) {
output.writeMessage(11, (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_);
}
if (identifierCase_ == 12) {
output.writeMessage(12, (io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher) identifier_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (identifierCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_);
}
if (identifierCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_);
}
if (identifierCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
3, (boolean)((java.lang.Boolean) identifier_));
}
if (identifierCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_);
}
if (identifierCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_);
}
if (identifierCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_);
}
if (identifierCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_);
}
if (identifierCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_);
}
if (identifierCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_);
}
if (identifierCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_);
}
if (identifierCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_);
}
if (identifierCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher) identifier_);
}
size += getUnknownFields().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.rbac.v3.Principal)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.rbac.v3.Principal other = (io.envoyproxy.envoy.config.rbac.v3.Principal) obj;
if (!getIdentifierCase().equals(other.getIdentifierCase())) return false;
switch (identifierCase_) {
case 1:
if (!getAndIds()
.equals(other.getAndIds())) return false;
break;
case 2:
if (!getOrIds()
.equals(other.getOrIds())) return false;
break;
case 3:
if (getAny()
!= other.getAny()) return false;
break;
case 4:
if (!getAuthenticated()
.equals(other.getAuthenticated())) return false;
break;
case 5:
if (!getSourceIp()
.equals(other.getSourceIp())) return false;
break;
case 10:
if (!getDirectRemoteIp()
.equals(other.getDirectRemoteIp())) return false;
break;
case 11:
if (!getRemoteIp()
.equals(other.getRemoteIp())) return false;
break;
case 6:
if (!getHeader()
.equals(other.getHeader())) return false;
break;
case 9:
if (!getUrlPath()
.equals(other.getUrlPath())) return false;
break;
case 7:
if (!getMetadata()
.equals(other.getMetadata())) return false;
break;
case 12:
if (!getFilterState()
.equals(other.getFilterState())) return false;
break;
case 8:
if (!getNotId()
.equals(other.getNotId())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (identifierCase_) {
case 1:
hash = (37 * hash) + AND_IDS_FIELD_NUMBER;
hash = (53 * hash) + getAndIds().hashCode();
break;
case 2:
hash = (37 * hash) + OR_IDS_FIELD_NUMBER;
hash = (53 * hash) + getOrIds().hashCode();
break;
case 3:
hash = (37 * hash) + ANY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAny());
break;
case 4:
hash = (37 * hash) + AUTHENTICATED_FIELD_NUMBER;
hash = (53 * hash) + getAuthenticated().hashCode();
break;
case 5:
hash = (37 * hash) + SOURCE_IP_FIELD_NUMBER;
hash = (53 * hash) + getSourceIp().hashCode();
break;
case 10:
hash = (37 * hash) + DIRECT_REMOTE_IP_FIELD_NUMBER;
hash = (53 * hash) + getDirectRemoteIp().hashCode();
break;
case 11:
hash = (37 * hash) + REMOTE_IP_FIELD_NUMBER;
hash = (53 * hash) + getRemoteIp().hashCode();
break;
case 6:
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
break;
case 9:
hash = (37 * hash) + URL_PATH_FIELD_NUMBER;
hash = (53 * hash) + getUrlPath().hashCode();
break;
case 7:
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
break;
case 12:
hash = (37 * hash) + FILTER_STATE_FIELD_NUMBER;
hash = (53 * hash) + getFilterState().hashCode();
break;
case 8:
hash = (37 * hash) + NOT_ID_FIELD_NUMBER;
hash = (53 * hash) + getNotId().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal 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.rbac.v3.Principal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal 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.rbac.v3.Principal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal 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.rbac.v3.Principal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal 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.rbac.v3.Principal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal 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.rbac.v3.Principal 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;
}
/**
*
* Principal defines an identity or a group of identities for a downstream
* subject.
* [#next-free-field: 13]
*
*
* Protobuf type {@code envoy.config.rbac.v3.Principal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3.Principal)
io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.rbac.v3.Principal.class, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.rbac.v3.Principal.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (andIdsBuilder_ != null) {
andIdsBuilder_.clear();
}
if (orIdsBuilder_ != null) {
orIdsBuilder_.clear();
}
if (authenticatedBuilder_ != null) {
authenticatedBuilder_.clear();
}
if (sourceIpBuilder_ != null) {
sourceIpBuilder_.clear();
}
if (directRemoteIpBuilder_ != null) {
directRemoteIpBuilder_.clear();
}
if (remoteIpBuilder_ != null) {
remoteIpBuilder_.clear();
}
if (headerBuilder_ != null) {
headerBuilder_.clear();
}
if (urlPathBuilder_ != null) {
urlPathBuilder_.clear();
}
if (metadataBuilder_ != null) {
metadataBuilder_.clear();
}
if (filterStateBuilder_ != null) {
filterStateBuilder_.clear();
}
if (notIdBuilder_ != null) {
notIdBuilder_.clear();
}
identifierCase_ = 0;
identifier_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Principal_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal build() {
io.envoyproxy.envoy.config.rbac.v3.Principal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal buildPartial() {
io.envoyproxy.envoy.config.rbac.v3.Principal result = new io.envoyproxy.envoy.config.rbac.v3.Principal(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.rbac.v3.Principal result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.envoyproxy.envoy.config.rbac.v3.Principal result) {
result.identifierCase_ = identifierCase_;
result.identifier_ = this.identifier_;
if (identifierCase_ == 1 &&
andIdsBuilder_ != null) {
result.identifier_ = andIdsBuilder_.build();
}
if (identifierCase_ == 2 &&
orIdsBuilder_ != null) {
result.identifier_ = orIdsBuilder_.build();
}
if (identifierCase_ == 4 &&
authenticatedBuilder_ != null) {
result.identifier_ = authenticatedBuilder_.build();
}
if (identifierCase_ == 5 &&
sourceIpBuilder_ != null) {
result.identifier_ = sourceIpBuilder_.build();
}
if (identifierCase_ == 10 &&
directRemoteIpBuilder_ != null) {
result.identifier_ = directRemoteIpBuilder_.build();
}
if (identifierCase_ == 11 &&
remoteIpBuilder_ != null) {
result.identifier_ = remoteIpBuilder_.build();
}
if (identifierCase_ == 6 &&
headerBuilder_ != null) {
result.identifier_ = headerBuilder_.build();
}
if (identifierCase_ == 9 &&
urlPathBuilder_ != null) {
result.identifier_ = urlPathBuilder_.build();
}
if (identifierCase_ == 7 &&
metadataBuilder_ != null) {
result.identifier_ = metadataBuilder_.build();
}
if (identifierCase_ == 12 &&
filterStateBuilder_ != null) {
result.identifier_ = filterStateBuilder_.build();
}
if (identifierCase_ == 8 &&
notIdBuilder_ != null) {
result.identifier_ = notIdBuilder_.build();
}
}
@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.rbac.v3.Principal) {
return mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Principal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3.Principal other) {
if (other == io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance()) return this;
switch (other.getIdentifierCase()) {
case AND_IDS: {
mergeAndIds(other.getAndIds());
break;
}
case OR_IDS: {
mergeOrIds(other.getOrIds());
break;
}
case ANY: {
setAny(other.getAny());
break;
}
case AUTHENTICATED: {
mergeAuthenticated(other.getAuthenticated());
break;
}
case SOURCE_IP: {
mergeSourceIp(other.getSourceIp());
break;
}
case DIRECT_REMOTE_IP: {
mergeDirectRemoteIp(other.getDirectRemoteIp());
break;
}
case REMOTE_IP: {
mergeRemoteIp(other.getRemoteIp());
break;
}
case HEADER: {
mergeHeader(other.getHeader());
break;
}
case URL_PATH: {
mergeUrlPath(other.getUrlPath());
break;
}
case METADATA: {
mergeMetadata(other.getMetadata());
break;
}
case FILTER_STATE: {
mergeFilterState(other.getFilterState());
break;
}
case NOT_ID: {
mergeNotId(other.getNotId());
break;
}
case IDENTIFIER_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAndIdsFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getOrIdsFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 2;
break;
} // case 18
case 24: {
identifier_ = input.readBool();
identifierCase_ = 3;
break;
} // case 24
case 34: {
input.readMessage(
getAuthenticatedFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getSourceIpFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getMetadataFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getNotIdFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getUrlPathFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getDirectRemoteIpFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getRemoteIpFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getFilterStateFieldBuilder().getBuilder(),
extensionRegistry);
identifierCase_ = 12;
break;
} // case 98
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int identifierCase_ = 0;
private java.lang.Object identifier_;
public IdentifierCase
getIdentifierCase() {
return IdentifierCase.forNumber(
identifierCase_);
}
public Builder clearIdentifier() {
identifierCase_ = 0;
identifier_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Set, io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder> andIdsBuilder_;
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
* @return Whether the andIds field is set.
*/
@java.lang.Override
public boolean hasAndIds() {
return identifierCase_ == 1;
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
* @return The andIds.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set getAndIds() {
if (andIdsBuilder_ == null) {
if (identifierCase_ == 1) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
} else {
if (identifierCase_ == 1) {
return andIdsBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
*/
public Builder setAndIds(io.envoyproxy.envoy.config.rbac.v3.Principal.Set value) {
if (andIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
andIdsBuilder_.setMessage(value);
}
identifierCase_ = 1;
return this;
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
*/
public Builder setAndIds(
io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder builderForValue) {
if (andIdsBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
andIdsBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 1;
return this;
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
*/
public Builder mergeAndIds(io.envoyproxy.envoy.config.rbac.v3.Principal.Set value) {
if (andIdsBuilder_ == null) {
if (identifierCase_ == 1 &&
identifier_ != io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.config.rbac.v3.Principal.Set.newBuilder((io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 1) {
andIdsBuilder_.mergeFrom(value);
} else {
andIdsBuilder_.setMessage(value);
}
}
identifierCase_ = 1;
return this;
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
*/
public Builder clearAndIds() {
if (andIdsBuilder_ == null) {
if (identifierCase_ == 1) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 1) {
identifierCase_ = 0;
identifier_ = null;
}
andIdsBuilder_.clear();
}
return this;
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
*/
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder getAndIdsBuilder() {
return getAndIdsFieldBuilder().getBuilder();
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder getAndIdsOrBuilder() {
if ((identifierCase_ == 1) && (andIdsBuilder_ != null)) {
return andIdsBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 1) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
}
/**
*
* A set of identifiers that all must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set and_ids = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Set, io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder>
getAndIdsFieldBuilder() {
if (andIdsBuilder_ == null) {
if (!(identifierCase_ == 1)) {
identifier_ = io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
andIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Set, io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder>(
(io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 1;
onChanged();
return andIdsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Set, io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder> orIdsBuilder_;
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
* @return Whether the orIds field is set.
*/
@java.lang.Override
public boolean hasOrIds() {
return identifierCase_ == 2;
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
* @return The orIds.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set getOrIds() {
if (orIdsBuilder_ == null) {
if (identifierCase_ == 2) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
} else {
if (identifierCase_ == 2) {
return orIdsBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
*/
public Builder setOrIds(io.envoyproxy.envoy.config.rbac.v3.Principal.Set value) {
if (orIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
orIdsBuilder_.setMessage(value);
}
identifierCase_ = 2;
return this;
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
*/
public Builder setOrIds(
io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder builderForValue) {
if (orIdsBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
orIdsBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 2;
return this;
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
*/
public Builder mergeOrIds(io.envoyproxy.envoy.config.rbac.v3.Principal.Set value) {
if (orIdsBuilder_ == null) {
if (identifierCase_ == 2 &&
identifier_ != io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.config.rbac.v3.Principal.Set.newBuilder((io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 2) {
orIdsBuilder_.mergeFrom(value);
} else {
orIdsBuilder_.setMessage(value);
}
}
identifierCase_ = 2;
return this;
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
*/
public Builder clearOrIds() {
if (orIdsBuilder_ == null) {
if (identifierCase_ == 2) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 2) {
identifierCase_ = 0;
identifier_ = null;
}
orIdsBuilder_.clear();
}
return this;
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
*/
public io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder getOrIdsBuilder() {
return getOrIdsFieldBuilder().getBuilder();
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder getOrIdsOrBuilder() {
if ((identifierCase_ == 2) && (orIdsBuilder_ != null)) {
return orIdsBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 2) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
}
/**
*
* A set of identifiers at least one must match in order to define the
* downstream.
*
*
* .envoy.config.rbac.v3.Principal.Set or_ids = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Set, io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder>
getOrIdsFieldBuilder() {
if (orIdsBuilder_ == null) {
if (!(identifierCase_ == 2)) {
identifier_ = io.envoyproxy.envoy.config.rbac.v3.Principal.Set.getDefaultInstance();
}
orIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Set, io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.SetOrBuilder>(
(io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 2;
onChanged();
return orIdsBuilder_;
}
/**
*
* When any is set, it matches any downstream.
*
*
* bool any = 3 [(.validate.rules) = { ... }
* @return Whether the any field is set.
*/
public boolean hasAny() {
return identifierCase_ == 3;
}
/**
*
* When any is set, it matches any downstream.
*
*
* bool any = 3 [(.validate.rules) = { ... }
* @return The any.
*/
public boolean getAny() {
if (identifierCase_ == 3) {
return (java.lang.Boolean) identifier_;
}
return false;
}
/**
*
* When any is set, it matches any downstream.
*
*
* bool any = 3 [(.validate.rules) = { ... }
* @param value The any to set.
* @return This builder for chaining.
*/
public Builder setAny(boolean value) {
identifierCase_ = 3;
identifier_ = value;
onChanged();
return this;
}
/**
*
* When any is set, it matches any downstream.
*
*
* bool any = 3 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearAny() {
if (identifierCase_ == 3) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated, io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.AuthenticatedOrBuilder> authenticatedBuilder_;
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
* @return Whether the authenticated field is set.
*/
@java.lang.Override
public boolean hasAuthenticated() {
return identifierCase_ == 4;
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
* @return The authenticated.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated getAuthenticated() {
if (authenticatedBuilder_ == null) {
if (identifierCase_ == 4) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance();
} else {
if (identifierCase_ == 4) {
return authenticatedBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance();
}
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
*/
public Builder setAuthenticated(io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated value) {
if (authenticatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
authenticatedBuilder_.setMessage(value);
}
identifierCase_ = 4;
return this;
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
*/
public Builder setAuthenticated(
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.Builder builderForValue) {
if (authenticatedBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
authenticatedBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 4;
return this;
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
*/
public Builder mergeAuthenticated(io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated value) {
if (authenticatedBuilder_ == null) {
if (identifierCase_ == 4 &&
identifier_ != io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.newBuilder((io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 4) {
authenticatedBuilder_.mergeFrom(value);
} else {
authenticatedBuilder_.setMessage(value);
}
}
identifierCase_ = 4;
return this;
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
*/
public Builder clearAuthenticated() {
if (authenticatedBuilder_ == null) {
if (identifierCase_ == 4) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 4) {
identifierCase_ = 0;
identifier_ = null;
}
authenticatedBuilder_.clear();
}
return this;
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
*/
public io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.Builder getAuthenticatedBuilder() {
return getAuthenticatedFieldBuilder().getBuilder();
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.AuthenticatedOrBuilder getAuthenticatedOrBuilder() {
if ((identifierCase_ == 4) && (authenticatedBuilder_ != null)) {
return authenticatedBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 4) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance();
}
}
/**
*
* Authenticated attributes that identify the downstream.
*
*
* .envoy.config.rbac.v3.Principal.Authenticated authenticated = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated, io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.AuthenticatedOrBuilder>
getAuthenticatedFieldBuilder() {
if (authenticatedBuilder_ == null) {
if (!(identifierCase_ == 4)) {
identifier_ = io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.getDefaultInstance();
}
authenticatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated, io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.Builder, io.envoyproxy.envoy.config.rbac.v3.Principal.AuthenticatedOrBuilder>(
(io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 4;
onChanged();
return authenticatedBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder> sourceIpBuilder_;
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.rbac.v3.Principal.source_ip is deprecated.
* See envoy/config/rbac/v3/rbac.proto;l=331
* @return Whether the sourceIp field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasSourceIp() {
return identifierCase_ == 5;
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.rbac.v3.Principal.source_ip is deprecated.
* See envoy/config/rbac/v3/rbac.proto;l=331
* @return The sourceIp.
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.CidrRange getSourceIp() {
if (sourceIpBuilder_ == null) {
if (identifierCase_ == 5) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
} else {
if (identifierCase_ == 5) {
return sourceIpBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder setSourceIp(io.envoyproxy.envoy.config.core.v3.CidrRange value) {
if (sourceIpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
sourceIpBuilder_.setMessage(value);
}
identifierCase_ = 5;
return this;
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder setSourceIp(
io.envoyproxy.envoy.config.core.v3.CidrRange.Builder builderForValue) {
if (sourceIpBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
sourceIpBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 5;
return this;
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder mergeSourceIp(io.envoyproxy.envoy.config.core.v3.CidrRange value) {
if (sourceIpBuilder_ == null) {
if (identifierCase_ == 5 &&
identifier_ != io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.config.core.v3.CidrRange.newBuilder((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 5) {
sourceIpBuilder_.mergeFrom(value);
} else {
sourceIpBuilder_.setMessage(value);
}
}
identifierCase_ = 5;
return this;
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder clearSourceIp() {
if (sourceIpBuilder_ == null) {
if (identifierCase_ == 5) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 5) {
identifierCase_ = 0;
identifier_ = null;
}
sourceIpBuilder_.clear();
}
return this;
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.CidrRange.Builder getSourceIpBuilder() {
return getSourceIpFieldBuilder().getBuilder();
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder getSourceIpOrBuilder() {
if ((identifierCase_ == 5) && (sourceIpBuilder_ != null)) {
return sourceIpBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 5) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
}
/**
*
* A CIDR block that describes the downstream IP.
* This address will honor proxy protocol, but will not honor XFF.
*
* This field is deprecated; either use :ref:`remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` for the same
* behavior, or use
* :ref:`direct_remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`.
*
*
* .envoy.config.core.v3.CidrRange source_ip = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder>
getSourceIpFieldBuilder() {
if (sourceIpBuilder_ == null) {
if (!(identifierCase_ == 5)) {
identifier_ = io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
sourceIpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder>(
(io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 5;
onChanged();
return sourceIpBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder> directRemoteIpBuilder_;
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
* @return Whether the directRemoteIp field is set.
*/
@java.lang.Override
public boolean hasDirectRemoteIp() {
return identifierCase_ == 10;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
* @return The directRemoteIp.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.CidrRange getDirectRemoteIp() {
if (directRemoteIpBuilder_ == null) {
if (identifierCase_ == 10) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
} else {
if (identifierCase_ == 10) {
return directRemoteIpBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
*/
public Builder setDirectRemoteIp(io.envoyproxy.envoy.config.core.v3.CidrRange value) {
if (directRemoteIpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
directRemoteIpBuilder_.setMessage(value);
}
identifierCase_ = 10;
return this;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
*/
public Builder setDirectRemoteIp(
io.envoyproxy.envoy.config.core.v3.CidrRange.Builder builderForValue) {
if (directRemoteIpBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
directRemoteIpBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 10;
return this;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
*/
public Builder mergeDirectRemoteIp(io.envoyproxy.envoy.config.core.v3.CidrRange value) {
if (directRemoteIpBuilder_ == null) {
if (identifierCase_ == 10 &&
identifier_ != io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.config.core.v3.CidrRange.newBuilder((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 10) {
directRemoteIpBuilder_.mergeFrom(value);
} else {
directRemoteIpBuilder_.setMessage(value);
}
}
identifierCase_ = 10;
return this;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
*/
public Builder clearDirectRemoteIp() {
if (directRemoteIpBuilder_ == null) {
if (identifierCase_ == 10) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 10) {
identifierCase_ = 0;
identifier_ = null;
}
directRemoteIpBuilder_.clear();
}
return this;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
*/
public io.envoyproxy.envoy.config.core.v3.CidrRange.Builder getDirectRemoteIpBuilder() {
return getDirectRemoteIpFieldBuilder().getBuilder();
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder getDirectRemoteIpOrBuilder() {
if ((identifierCase_ == 10) && (directRemoteIpBuilder_ != null)) {
return directRemoteIpBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 10) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This is always the physical peer even if the
* :ref:`remote_ip <envoy_v3_api_field_config.rbac.v3.Principal.remote_ip>` is
* inferred from for example the x-forwarder-for header, proxy protocol,
* etc.
*
*
* .envoy.config.core.v3.CidrRange direct_remote_ip = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder>
getDirectRemoteIpFieldBuilder() {
if (directRemoteIpBuilder_ == null) {
if (!(identifierCase_ == 10)) {
identifier_ = io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
directRemoteIpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder>(
(io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 10;
onChanged();
return directRemoteIpBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder> remoteIpBuilder_;
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
* @return Whether the remoteIp field is set.
*/
@java.lang.Override
public boolean hasRemoteIp() {
return identifierCase_ == 11;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
* @return The remoteIp.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.CidrRange getRemoteIp() {
if (remoteIpBuilder_ == null) {
if (identifierCase_ == 11) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
} else {
if (identifierCase_ == 11) {
return remoteIpBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
*/
public Builder setRemoteIp(io.envoyproxy.envoy.config.core.v3.CidrRange value) {
if (remoteIpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
remoteIpBuilder_.setMessage(value);
}
identifierCase_ = 11;
return this;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
*/
public Builder setRemoteIp(
io.envoyproxy.envoy.config.core.v3.CidrRange.Builder builderForValue) {
if (remoteIpBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
remoteIpBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 11;
return this;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
*/
public Builder mergeRemoteIp(io.envoyproxy.envoy.config.core.v3.CidrRange value) {
if (remoteIpBuilder_ == null) {
if (identifierCase_ == 11 &&
identifier_ != io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.config.core.v3.CidrRange.newBuilder((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 11) {
remoteIpBuilder_.mergeFrom(value);
} else {
remoteIpBuilder_.setMessage(value);
}
}
identifierCase_ = 11;
return this;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
*/
public Builder clearRemoteIp() {
if (remoteIpBuilder_ == null) {
if (identifierCase_ == 11) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 11) {
identifierCase_ = 0;
identifier_ = null;
}
remoteIpBuilder_.clear();
}
return this;
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
*/
public io.envoyproxy.envoy.config.core.v3.CidrRange.Builder getRemoteIpBuilder() {
return getRemoteIpFieldBuilder().getBuilder();
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder getRemoteIpOrBuilder() {
if ((identifierCase_ == 11) && (remoteIpBuilder_ != null)) {
return remoteIpBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 11) {
return (io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_;
}
return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
}
/**
*
* A CIDR block that describes the downstream remote/origin address.
* Note: This may not be the physical peer and could be different from the
* :ref:`direct_remote_ip
* <envoy_v3_api_field_config.rbac.v3.Principal.direct_remote_ip>`. E.g, if the
* remote ip is inferred from for example the x-forwarder-for header, proxy
* protocol, etc.
*
*
* .envoy.config.core.v3.CidrRange remote_ip = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder>
getRemoteIpFieldBuilder() {
if (remoteIpBuilder_ == null) {
if (!(identifierCase_ == 11)) {
identifier_ = io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance();
}
remoteIpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder>(
(io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 11;
onChanged();
return remoteIpBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder> headerBuilder_;
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return identifierCase_ == 6;
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
* @return The header.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.route.v3.HeaderMatcher getHeader() {
if (headerBuilder_ == null) {
if (identifierCase_ == 6) {
return (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_;
}
return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance();
} else {
if (identifierCase_ == 6) {
return headerBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance();
}
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
*/
public Builder setHeader(io.envoyproxy.envoy.config.route.v3.HeaderMatcher value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
identifierCase_ = 6;
return this;
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
*/
public Builder setHeader(
io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder builderForValue) {
if (headerBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 6;
return this;
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
*/
public Builder mergeHeader(io.envoyproxy.envoy.config.route.v3.HeaderMatcher value) {
if (headerBuilder_ == null) {
if (identifierCase_ == 6 &&
identifier_ != io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.config.route.v3.HeaderMatcher.newBuilder((io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 6) {
headerBuilder_.mergeFrom(value);
} else {
headerBuilder_.setMessage(value);
}
}
identifierCase_ = 6;
return this;
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
if (identifierCase_ == 6) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 6) {
identifierCase_ = 0;
identifier_ = null;
}
headerBuilder_.clear();
}
return this;
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
*/
public io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder getHeaderBuilder() {
return getHeaderFieldBuilder().getBuilder();
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder getHeaderOrBuilder() {
if ((identifierCase_ == 6) && (headerBuilder_ != null)) {
return headerBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 6) {
return (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_;
}
return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance();
}
}
/**
*
* A header (or pseudo-header such as :path or :method) on the incoming HTTP
* request. Only available for HTTP request. Note: the pseudo-header :path
* includes the query and fragment string. Use the ``url_path`` field if you
* want to match the URL path without the query and fragment string.
*
*
* .envoy.config.route.v3.HeaderMatcher header = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
if (!(identifierCase_ == 6)) {
identifier_ = io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance();
}
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder>(
(io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 6;
onChanged();
return headerBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.PathMatcher, io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder> urlPathBuilder_;
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
* @return Whether the urlPath field is set.
*/
@java.lang.Override
public boolean hasUrlPath() {
return identifierCase_ == 9;
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
* @return The urlPath.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.PathMatcher getUrlPath() {
if (urlPathBuilder_ == null) {
if (identifierCase_ == 9) {
return (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance();
} else {
if (identifierCase_ == 9) {
return urlPathBuilder_.getMessage();
}
return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance();
}
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
*/
public Builder setUrlPath(io.envoyproxy.envoy.type.matcher.v3.PathMatcher value) {
if (urlPathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
urlPathBuilder_.setMessage(value);
}
identifierCase_ = 9;
return this;
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
*/
public Builder setUrlPath(
io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder builderForValue) {
if (urlPathBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
urlPathBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 9;
return this;
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
*/
public Builder mergeUrlPath(io.envoyproxy.envoy.type.matcher.v3.PathMatcher value) {
if (urlPathBuilder_ == null) {
if (identifierCase_ == 9 &&
identifier_ != io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.type.matcher.v3.PathMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 9) {
urlPathBuilder_.mergeFrom(value);
} else {
urlPathBuilder_.setMessage(value);
}
}
identifierCase_ = 9;
return this;
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
*/
public Builder clearUrlPath() {
if (urlPathBuilder_ == null) {
if (identifierCase_ == 9) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 9) {
identifierCase_ = 0;
identifier_ = null;
}
urlPathBuilder_.clear();
}
return this;
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
*/
public io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder getUrlPathBuilder() {
return getUrlPathFieldBuilder().getBuilder();
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder getUrlPathOrBuilder() {
if ((identifierCase_ == 9) && (urlPathBuilder_ != null)) {
return urlPathBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 9) {
return (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance();
}
}
/**
*
* A URL path on the incoming HTTP request. Only available for HTTP.
*
*
* .envoy.type.matcher.v3.PathMatcher url_path = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.PathMatcher, io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder>
getUrlPathFieldBuilder() {
if (urlPathBuilder_ == null) {
if (!(identifierCase_ == 9)) {
identifier_ = io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance();
}
urlPathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.PathMatcher, io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder>(
(io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 9;
onChanged();
return urlPathBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder> metadataBuilder_;
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return identifierCase_ == 7;
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
* @return The metadata.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher getMetadata() {
if (metadataBuilder_ == null) {
if (identifierCase_ == 7) {
return (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance();
} else {
if (identifierCase_ == 7) {
return metadataBuilder_.getMessage();
}
return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance();
}
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
*/
public Builder setMetadata(io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
identifierCase_ = 7;
return this;
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
*/
public Builder setMetadata(
io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder builderForValue) {
if (metadataBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 7;
return this;
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
*/
public Builder mergeMetadata(io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher value) {
if (metadataBuilder_ == null) {
if (identifierCase_ == 7 &&
identifier_ != io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 7) {
metadataBuilder_.mergeFrom(value);
} else {
metadataBuilder_.setMessage(value);
}
}
identifierCase_ = 7;
return this;
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
if (identifierCase_ == 7) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 7) {
identifierCase_ = 0;
identifier_ = null;
}
metadataBuilder_.clear();
}
return this;
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
*/
public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder getMetadataBuilder() {
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder getMetadataOrBuilder() {
if ((identifierCase_ == 7) && (metadataBuilder_ != null)) {
return metadataBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 7) {
return (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance();
}
}
/**
*
* Metadata that describes additional information about the principal.
*
*
* .envoy.type.matcher.v3.MetadataMatcher metadata = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
if (!(identifierCase_ == 7)) {
identifier_ = io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance();
}
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder>(
(io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 7;
onChanged();
return metadataBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher, io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcherOrBuilder> filterStateBuilder_;
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
* @return Whether the filterState field is set.
*/
@java.lang.Override
public boolean hasFilterState() {
return identifierCase_ == 12;
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
* @return The filterState.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher getFilterState() {
if (filterStateBuilder_ == null) {
if (identifierCase_ == 12) {
return (io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.getDefaultInstance();
} else {
if (identifierCase_ == 12) {
return filterStateBuilder_.getMessage();
}
return io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.getDefaultInstance();
}
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
*/
public Builder setFilterState(io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher value) {
if (filterStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
filterStateBuilder_.setMessage(value);
}
identifierCase_ = 12;
return this;
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
*/
public Builder setFilterState(
io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.Builder builderForValue) {
if (filterStateBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
filterStateBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 12;
return this;
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
*/
public Builder mergeFilterState(io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher value) {
if (filterStateBuilder_ == null) {
if (identifierCase_ == 12 &&
identifier_ != io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 12) {
filterStateBuilder_.mergeFrom(value);
} else {
filterStateBuilder_.setMessage(value);
}
}
identifierCase_ = 12;
return this;
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
*/
public Builder clearFilterState() {
if (filterStateBuilder_ == null) {
if (identifierCase_ == 12) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 12) {
identifierCase_ = 0;
identifier_ = null;
}
filterStateBuilder_.clear();
}
return this;
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
*/
public io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.Builder getFilterStateBuilder() {
return getFilterStateFieldBuilder().getBuilder();
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcherOrBuilder getFilterStateOrBuilder() {
if ((identifierCase_ == 12) && (filterStateBuilder_ != null)) {
return filterStateBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 12) {
return (io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher) identifier_;
}
return io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.getDefaultInstance();
}
}
/**
*
* Identifies the principal using a filter state object.
*
*
* .envoy.type.matcher.v3.FilterStateMatcher filter_state = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher, io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcherOrBuilder>
getFilterStateFieldBuilder() {
if (filterStateBuilder_ == null) {
if (!(identifierCase_ == 12)) {
identifier_ = io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.getDefaultInstance();
}
filterStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher, io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcherOrBuilder>(
(io.envoyproxy.envoy.type.matcher.v3.FilterStateMatcher) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 12;
onChanged();
return filterStateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder> notIdBuilder_;
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
* @return Whether the notId field is set.
*/
@java.lang.Override
public boolean hasNotId() {
return identifierCase_ == 8;
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
* @return The notId.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal getNotId() {
if (notIdBuilder_ == null) {
if (identifierCase_ == 8) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance();
} else {
if (identifierCase_ == 8) {
return notIdBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance();
}
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
*/
public Builder setNotId(io.envoyproxy.envoy.config.rbac.v3.Principal value) {
if (notIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
notIdBuilder_.setMessage(value);
}
identifierCase_ = 8;
return this;
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
*/
public Builder setNotId(
io.envoyproxy.envoy.config.rbac.v3.Principal.Builder builderForValue) {
if (notIdBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
notIdBuilder_.setMessage(builderForValue.build());
}
identifierCase_ = 8;
return this;
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
*/
public Builder mergeNotId(io.envoyproxy.envoy.config.rbac.v3.Principal value) {
if (notIdBuilder_ == null) {
if (identifierCase_ == 8 &&
identifier_ != io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance()) {
identifier_ = io.envoyproxy.envoy.config.rbac.v3.Principal.newBuilder((io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_)
.mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
if (identifierCase_ == 8) {
notIdBuilder_.mergeFrom(value);
} else {
notIdBuilder_.setMessage(value);
}
}
identifierCase_ = 8;
return this;
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
*/
public Builder clearNotId() {
if (notIdBuilder_ == null) {
if (identifierCase_ == 8) {
identifierCase_ = 0;
identifier_ = null;
onChanged();
}
} else {
if (identifierCase_ == 8) {
identifierCase_ = 0;
identifier_ = null;
}
notIdBuilder_.clear();
}
return this;
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
*/
public io.envoyproxy.envoy.config.rbac.v3.Principal.Builder getNotIdBuilder() {
return getNotIdFieldBuilder().getBuilder();
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder getNotIdOrBuilder() {
if ((identifierCase_ == 8) && (notIdBuilder_ != null)) {
return notIdBuilder_.getMessageOrBuilder();
} else {
if (identifierCase_ == 8) {
return (io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_;
}
return io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance();
}
}
/**
*
* Negates matching the provided principal. For instance, if the value of
* ``not_id`` would match, this principal would not match. Conversely, if the
* value of ``not_id`` would not match, this principal would match.
*
*
* .envoy.config.rbac.v3.Principal not_id = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder>
getNotIdFieldBuilder() {
if (notIdBuilder_ == null) {
if (!(identifierCase_ == 8)) {
identifier_ = io.envoyproxy.envoy.config.rbac.v3.Principal.getDefaultInstance();
}
notIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.rbac.v3.Principal, io.envoyproxy.envoy.config.rbac.v3.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3.PrincipalOrBuilder>(
(io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_,
getParentForChildren(),
isClean());
identifier_ = null;
}
identifierCase_ = 8;
onChanged();
return notIdBuilder_;
}
@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.rbac.v3.Principal)
}
// @@protoc_insertion_point(class_scope:envoy.config.rbac.v3.Principal)
private static final io.envoyproxy.envoy.config.rbac.v3.Principal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3.Principal();
}
public static io.envoyproxy.envoy.config.rbac.v3.Principal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Principal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.rbac.v3.Principal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy