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

io.envoyproxy.envoy.config.rbac.v3.Principal Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/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]
 * 
* * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Principal( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder subBuilder = null; if (identifierCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Principal.Set.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.rbac.v3.Principal.Set.Builder subBuilder = null; if (identifierCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Principal.Set.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Principal.Set) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 2; break; } case 24: { identifier_ = input.readBool(); identifierCase_ = 3; break; } case 34: { io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.Builder subBuilder = null; if (identifierCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Principal.Authenticated) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 4; break; } case 42: { io.envoyproxy.envoy.config.core.v3.CidrRange.Builder subBuilder = null; if (identifierCase_ == 5) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.CidrRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 5; break; } case 50: { io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder subBuilder = null; if (identifierCase_ == 6) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.HeaderMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.HeaderMatcher) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 6; break; } case 58: { io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder subBuilder = null; if (identifierCase_ == 7) { subBuilder = ((io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 7; break; } case 66: { io.envoyproxy.envoy.config.rbac.v3.Principal.Builder subBuilder = null; if (identifierCase_ == 8) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Principal.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Principal) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 8; break; } case 74: { io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder subBuilder = null; if (identifierCase_ == 9) { subBuilder = ((io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.PathMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.v3.PathMatcher) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 9; break; } case 82: { io.envoyproxy.envoy.config.core.v3.CidrRange.Builder subBuilder = null; if (identifierCase_ == 10) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.CidrRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 10; break; } case 90: { io.envoyproxy.envoy.config.core.v3.CidrRange.Builder subBuilder = null; if (identifierCase_ == 11) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.CidrRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.CidrRange) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 11; 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_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 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(); } @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 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.
     * 
* * 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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (idsBuilder_ == null) { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { idsBuilder_.clear(); } 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); int from_bitField0_ = bitField0_; if (idsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ids_ = java.util.Collections.unmodifiableList(ids_); bitField0_ = (bitField0_ & ~0x00000001); } result.ids_ = ids_; } else { result.ids_ = idsBuilder_.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.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.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.Set parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.rbac.v3.Principal.Set) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 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 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 { return new Set(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.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(); } @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.
     * 
* * .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 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.
       * 
* * .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; 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.
       * 
* * .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(); onChanged(); } else { principalNameBuilder_.setMessage(builderForValue.build()); } 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 (principalName_ != null) { principalName_ = io.envoyproxy.envoy.type.matcher.v3.StringMatcher.newBuilder(principalName_).mergeFrom(value).buildPartial(); } else { principalName_ = value; } onChanged(); } else { principalNameBuilder_.mergeFrom(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.
       * 
* * .envoy.type.matcher.v3.StringMatcher principal_name = 2; */ public Builder clearPrincipalName() { if (principalNameBuilder_ == null) { principalName_ = null; onChanged(); } else { principalName_ = null; principalNameBuilder_ = null; } 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() { 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 { 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.
     * 
* * .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.
     * 
* * .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 (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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.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 { 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy