Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/rbac/v3/rbac.proto
package io.envoyproxy.envoy.config.rbac.v3;
/**
*
* Principal defines an identity or a group of identities for a downstream
* subject.
* [#next-free-field: 12]
*
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Set(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
ids_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
ids_.add(
input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Principal.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
ids_ = java.util.Collections.unmodifiableList(ids_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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;
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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getIdsCount() > 0) {
hash = (37 * hash) + IDS_FIELD_NUMBER;
hash = (53 * hash) + getIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.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.
*
* 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.
*
* 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.
*
*
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Authenticated(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder subBuilder = null;
if (principalName_ != null) {
subBuilder = principalName_.toBuilder();
}
principalName_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.StringMatcher.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(principalName_);
principalName_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.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);
}
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 principalName_ != null;
}
/**
*
* 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.
*
* 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 getPrincipalName();
}
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 (principalName_ != null) {
output.writeMessage(2, getPrincipalName());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (principalName_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPrincipalName());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPrincipalName()) {
hash = (37 * hash) + PRINCIPAL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPrincipalName().hashCode();
}
hash = (29 * hash) + unknownFields.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (principalNameBuilder_ == null) {
principalName_ = null;
} else {
principalName_ = null;
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 (principalNameBuilder_ == null) {
result.principalName_ = principalName_;
} else {
result.principalName_ = principalNameBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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 principalNameBuilder_ != null || principalName_ != null;
}
/**
*
* 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.
*
* 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;
onChanged();
} else {
principalNameBuilder_.setMessage(value);
}
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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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 {
return new Authenticated(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int identifierCase_ = 0;
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),
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 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.
*
*
* .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=276
* @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.
*
*
* .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=276
* @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.
*
*
* .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 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_);
}
unknownFields.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_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.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 8:
if (!getNotId()
.equals(other.getNotId())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (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 8:
hash = (37 * hash) + NOT_ID_FIELD_NUMBER;
hash = (53 * hash) + getNotId().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.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: 12]
*
*
* 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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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 (identifierCase_ == 1) {
if (andIdsBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = andIdsBuilder_.build();
}
}
if (identifierCase_ == 2) {
if (orIdsBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = orIdsBuilder_.build();
}
}
if (identifierCase_ == 3) {
result.identifier_ = identifier_;
}
if (identifierCase_ == 4) {
if (authenticatedBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = authenticatedBuilder_.build();
}
}
if (identifierCase_ == 5) {
if (sourceIpBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = sourceIpBuilder_.build();
}
}
if (identifierCase_ == 10) {
if (directRemoteIpBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = directRemoteIpBuilder_.build();
}
}
if (identifierCase_ == 11) {
if (remoteIpBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = remoteIpBuilder_.build();
}
}
if (identifierCase_ == 6) {
if (headerBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = headerBuilder_.build();
}
}
if (identifierCase_ == 9) {
if (urlPathBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = urlPathBuilder_.build();
}
}
if (identifierCase_ == 7) {
if (metadataBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = metadataBuilder_.build();
}
}
if (identifierCase_ == 8) {
if (notIdBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = notIdBuilder_.build();
}
}
result.identifierCase_ = identifierCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.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 NOT_ID: {
mergeNotId(other.getNotId());
break;
}
case IDENTIFIER_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.config.rbac.v3.Principal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.rbac.v3.Principal) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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 {
return new Principal(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.rbac.v3.Principal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}