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

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

package io.envoyproxy.envoy.config.rbac.v3alpha;

/**
 * 
 * Principal defines an identity or a group of identities for a downstream subject.
 * 
* * Protobuf type {@code envoy.config.rbac.v3alpha.Principal} */ public final class Principal extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set.Builder subBuilder = null; if (identifierCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder subBuilder = null; if (identifierCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 2; break; } case 24: { identifierCase_ = 3; identifier_ = input.readBool(); break; } case 34: { io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.Builder subBuilder = null; if (identifierCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 4; break; } case 42: { io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder subBuilder = null; if (identifierCase_ == 5) { subBuilder = ((io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.CidrRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 5; break; } case 50: { io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder subBuilder = null; if (identifierCase_ == 6) { subBuilder = ((io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 6; break; } case 58: { io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder subBuilder = null; if (identifierCase_ == 7) { subBuilder = ((io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.type.matcher.MetadataMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 7; break; } case 66: { io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder subBuilder = null; if (identifierCase_ == 8) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3alpha.Principal) identifier_).toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Principal) identifier_); identifier_ = subBuilder.buildPartial(); } identifierCase_ = 8; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Principal.class, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder.class); } public interface SetOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.rbac.v3alpha.Principal.Set) com.google.protobuf.MessageOrBuilder { /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ java.util.List getIdsList(); /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.rbac.v3alpha.Principal getIds(int index); /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ int getIdsCount(); /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ java.util.List getIdsOrBuilderList(); /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set} */ public static final class Set extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.rbac.v3alpha.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.v3alpha.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 (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.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Set_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Set_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.class, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder.class); } public static final int IDS_FIELD_NUMBER = 1; private java.util.List ids_; /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public java.util.List getIdsList() { return ids_; } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public java.util.List getIdsOrBuilderList() { return ids_; } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public int getIdsCount() { return ids_.size(); } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal getIds(int index) { return ids_.get(index); } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set)) { return super.equals(obj); } io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set other = (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.Principal.Set} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3alpha.Principal.Set) io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Set_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Set_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.class, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder.class); } // Construct using io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Set_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set getDefaultInstanceForType() { return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set build() { io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set buildPartial() { io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set result = new io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set) { return mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set other) { if (other == io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.PrincipalOrBuilder> idsBuilder_; /** * repeated .envoy.config.rbac.v3alpha.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.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public int getIdsCount() { if (idsBuilder_ == null) { return ids_.size(); } else { return idsBuilder_.getCount(); } } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal getIds(int index) { if (idsBuilder_ == null) { return ids_.get(index); } else { return idsBuilder_.getMessage(index); } } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public Builder setIds( int index, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public Builder setIds( int index, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public Builder addIds(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public Builder addIds( int index, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public Builder addIds( io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder builderForValue) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.add(builderForValue.build()); onChanged(); } else { idsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public Builder addIds( int index, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder getIdsBuilder( int index) { return getIdsFieldBuilder().getBuilder(index); } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.PrincipalOrBuilder getIdsOrBuilder( int index) { if (idsBuilder_ == null) { return ids_.get(index); } else { return idsBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.config.rbac.v3alpha.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.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder addIdsBuilder() { return getIdsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.rbac.v3alpha.Principal.getDefaultInstance()); } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder addIdsBuilder( int index) { return getIdsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.getDefaultInstance()); } /** * repeated .envoy.config.rbac.v3alpha.Principal ids = 1 [(.validate.rules) = { ... } */ public java.util.List getIdsBuilderList() { return getIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.PrincipalOrBuilder> getIdsFieldBuilder() { if (idsBuilder_ == null) { idsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set) } // @@protoc_insertion_point(class_scope:envoy.config.rbac.v3alpha.Principal.Set) private static final io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set(); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthenticatedOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.rbac.v3alpha.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.StringMatcher principal_name = 2; */ 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.StringMatcher principal_name = 2; */ io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder getPrincipalNameOrBuilder(); } /** *
   * Authentication attributes for a downstream.
   * 
* * Protobuf type {@code envoy.config.rbac.v3alpha.Principal.Authenticated} */ public static final class Authenticated extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.rbac.v3alpha.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.StringMatcher.Builder subBuilder = null; if (principalName_ != null) { subBuilder = principalName_.toBuilder(); } principalName_ = input.readMessage(io.envoyproxy.envoy.type.matcher.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 (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.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Authenticated_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Authenticated_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.class, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.Builder.class); } public static final int PRINCIPAL_NAME_FIELD_NUMBER = 2; private io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ 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.StringMatcher principal_name = 2; */ public io.envoyproxy.envoy.type.matcher.StringMatcher getPrincipalName() { return principalName_ == null ? io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ public io.envoyproxy.envoy.type.matcher.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.v3alpha.Principal.Authenticated)) { return super.equals(obj); } io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated other = (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.Principal.Authenticated} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3alpha.Principal.Authenticated) io.envoyproxy.envoy.config.rbac.v3alpha.Principal.AuthenticatedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Authenticated_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Authenticated_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.class, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.Builder.class); } // Construct using io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_Authenticated_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated getDefaultInstanceForType() { return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated build() { io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated buildPartial() { io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated result = new io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated) { return mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated other) { if (other == io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.type.matcher.StringMatcher principalName_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.StringMatcher, io.envoyproxy.envoy.type.matcher.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ 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.StringMatcher principal_name = 2; */ public io.envoyproxy.envoy.type.matcher.StringMatcher getPrincipalName() { if (principalNameBuilder_ == null) { return principalName_ == null ? io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ public Builder setPrincipalName(io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ public Builder setPrincipalName( io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ public Builder mergePrincipalName(io.envoyproxy.envoy.type.matcher.StringMatcher value) { if (principalNameBuilder_ == null) { if (principalName_ != null) { principalName_ = io.envoyproxy.envoy.type.matcher.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.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.StringMatcher principal_name = 2; */ public io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ public io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder getPrincipalNameOrBuilder() { if (principalNameBuilder_ != null) { return principalNameBuilder_.getMessageOrBuilder(); } else { return principalName_ == null ? io.envoyproxy.envoy.type.matcher.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.StringMatcher principal_name = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.StringMatcher, io.envoyproxy.envoy.type.matcher.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder> getPrincipalNameFieldBuilder() { if (principalNameBuilder_ == null) { principalNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.StringMatcher, io.envoyproxy.envoy.type.matcher.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.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.v3alpha.Principal.Authenticated) } // @@protoc_insertion_point(class_scope:envoy.config.rbac.v3alpha.Principal.Authenticated) private static final io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated(); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int identifierCase_ = 0; private java.lang.Object identifier_; public enum IdentifierCase implements com.google.protobuf.Internal.EnumLite { AND_IDS(1), OR_IDS(2), ANY(3), AUTHENTICATED(4), SOURCE_IP(5), HEADER(6), METADATA(7), NOT_ID(8), IDENTIFIER_NOT_SET(0); private final int value; private IdentifierCase(int value) { this.value = value; } /** * @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 6: return HEADER; 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.v3alpha.Principal.Set and_ids = 1; */ public boolean hasAndIds() { return identifierCase_ == 1; } /** *
   * A set of identifiers that all must match in order to define the downstream.
   * 
* * .envoy.config.rbac.v3alpha.Principal.Set and_ids = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set getAndIds() { if (identifierCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } /** *
   * A set of identifiers that all must match in order to define the downstream.
   * 
* * .envoy.config.rbac.v3alpha.Principal.Set and_ids = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder getAndIdsOrBuilder() { if (identifierCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set or_ids = 2; */ public boolean hasOrIds() { return identifierCase_ == 2; } /** *
   * A set of identifiers at least one must match in order to define the downstream.
   * 
* * .envoy.config.rbac.v3alpha.Principal.Set or_ids = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set getOrIds() { if (identifierCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } /** *
   * A set of identifiers at least one must match in order to define the downstream.
   * 
* * .envoy.config.rbac.v3alpha.Principal.Set or_ids = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder getOrIdsOrBuilder() { if (identifierCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } public static final int ANY_FIELD_NUMBER = 3; /** *
   * When any is set, it matches any downstream.
   * 
* * bool any = 3 [(.validate.rules) = { ... } */ 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.v3alpha.Principal.Authenticated authenticated = 4; */ public boolean hasAuthenticated() { return identifierCase_ == 4; } /** *
   * Authenticated attributes that identify the downstream.
   * 
* * .envoy.config.rbac.v3alpha.Principal.Authenticated authenticated = 4; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated getAuthenticated() { if (identifierCase_ == 4) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.getDefaultInstance(); } /** *
   * Authenticated attributes that identify the downstream.
   * 
* * .envoy.config.rbac.v3alpha.Principal.Authenticated authenticated = 4; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.AuthenticatedOrBuilder getAuthenticatedOrBuilder() { if (identifierCase_ == 4) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.getDefaultInstance(); } public static final int SOURCE_IP_FIELD_NUMBER = 5; /** *
   * A CIDR block that describes the downstream IP.
   * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public boolean hasSourceIp() { return identifierCase_ == 5; } /** *
   * A CIDR block that describes the downstream IP.
   * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRange getSourceIp() { if (identifierCase_ == 5) { return (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_; } return io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } /** *
   * A CIDR block that describes the downstream IP.
   * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder getSourceIpOrBuilder() { if (identifierCase_ == 5) { return (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_; } return io.envoyproxy.envoy.api.v3alpha.core.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.
   * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ 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.
   * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher getHeader() { if (identifierCase_ == 6) { return (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_; } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } /** *
   * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
   * available for HTTP request.
   * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder getHeaderOrBuilder() { if (identifierCase_ == 6) { return (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_; } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } public static final int METADATA_FIELD_NUMBER = 7; /** *
   * Metadata that describes additional information about the principal.
   * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public boolean hasMetadata() { return identifierCase_ == 7; } /** *
   * Metadata that describes additional information about the principal.
   * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcher getMetadata() { if (identifierCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_; } return io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } /** *
   * Metadata that describes additional information about the principal.
   * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder getMetadataOrBuilder() { if (identifierCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_; } return io.envoyproxy.envoy.type.matcher.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.v3alpha.Principal not_id = 8; */ 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.v3alpha.Principal not_id = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal getNotId() { if (identifierCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal not_id = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.PrincipalOrBuilder getNotIdOrBuilder() { if (identifierCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set) identifier_); } if (identifierCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated) identifier_); } if (identifierCase_ == 5) { output.writeMessage(5, (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_); } if (identifierCase_ == 6) { output.writeMessage(6, (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_); } if (identifierCase_ == 7) { output.writeMessage(7, (io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_); } if (identifierCase_ == 8) { output.writeMessage(8, (io.envoyproxy.envoy.config.rbac.v3alpha.Principal) 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.v3alpha.Principal.Set) identifier_); } if (identifierCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated) identifier_); } if (identifierCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_); } if (identifierCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_); } if (identifierCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_); } if (identifierCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.envoyproxy.envoy.config.rbac.v3alpha.Principal) 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.v3alpha.Principal)) { return super.equals(obj); } io.envoyproxy.envoy.config.rbac.v3alpha.Principal other = (io.envoyproxy.envoy.config.rbac.v3alpha.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 6: if (!getHeader() .equals(other.getHeader())) 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 6: hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().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.v3alpha.Principal parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.
   * 
* * Protobuf type {@code envoy.config.rbac.v3alpha.Principal} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3alpha.Principal) io.envoyproxy.envoy.config.rbac.v3alpha.PrincipalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Principal.class, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder.class); } // Construct using io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Principal_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal getDefaultInstanceForType() { return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal build() { io.envoyproxy.envoy.config.rbac.v3alpha.Principal result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Principal buildPartial() { io.envoyproxy.envoy.config.rbac.v3alpha.Principal result = new io.envoyproxy.envoy.config.rbac.v3alpha.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_ == 6) { if (headerBuilder_ == null) { result.identifier_ = identifier_; } else { result.identifier_ = headerBuilder_.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.v3alpha.Principal) { return mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Principal)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3alpha.Principal other) { if (other == io.envoyproxy.envoy.config.rbac.v3alpha.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 HEADER: { mergeHeader(other.getHeader()); 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.v3alpha.Principal parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder> andIdsBuilder_; /** *
     * A set of identifiers that all must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set and_ids = 1; */ public boolean hasAndIds() { return identifierCase_ == 1; } /** *
     * A set of identifiers that all must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set and_ids = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set getAndIds() { if (andIdsBuilder_ == null) { if (identifierCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } else { if (identifierCase_ == 1) { return andIdsBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } } /** *
     * A set of identifiers that all must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set and_ids = 1; */ public Builder setAndIds(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set and_ids = 1; */ public Builder setAndIds( io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set and_ids = 1; */ public Builder mergeAndIds(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set value) { if (andIdsBuilder_ == null) { if (identifierCase_ == 1 && identifier_ != io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance()) { identifier_ = io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.newBuilder((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_) .mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { if (identifierCase_ == 1) { andIdsBuilder_.mergeFrom(value); } andIdsBuilder_.setMessage(value); } identifierCase_ = 1; return this; } /** *
     * A set of identifiers that all must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set and_ids = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder getAndIdsBuilder() { return getAndIdsFieldBuilder().getBuilder(); } /** *
     * A set of identifiers that all must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set and_ids = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder getAndIdsOrBuilder() { if ((identifierCase_ == 1) && (andIdsBuilder_ != null)) { return andIdsBuilder_.getMessageOrBuilder(); } else { if (identifierCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } } /** *
     * A set of identifiers that all must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set and_ids = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder> getAndIdsFieldBuilder() { if (andIdsBuilder_ == null) { if (!(identifierCase_ == 1)) { identifier_ = io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } andIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_, getParentForChildren(), isClean()); identifier_ = null; } identifierCase_ = 1; onChanged();; return andIdsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder> orIdsBuilder_; /** *
     * A set of identifiers at least one must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set or_ids = 2; */ public boolean hasOrIds() { return identifierCase_ == 2; } /** *
     * A set of identifiers at least one must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set or_ids = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set getOrIds() { if (orIdsBuilder_ == null) { if (identifierCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } else { if (identifierCase_ == 2) { return orIdsBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } } /** *
     * A set of identifiers at least one must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set or_ids = 2; */ public Builder setOrIds(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set or_ids = 2; */ public Builder setOrIds( io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set or_ids = 2; */ public Builder mergeOrIds(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set value) { if (orIdsBuilder_ == null) { if (identifierCase_ == 2 && identifier_ != io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance()) { identifier_ = io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.newBuilder((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_) .mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { if (identifierCase_ == 2) { orIdsBuilder_.mergeFrom(value); } 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.v3alpha.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.v3alpha.Principal.Set or_ids = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Set or_ids = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder getOrIdsOrBuilder() { if ((identifierCase_ == 2) && (orIdsBuilder_ != null)) { return orIdsBuilder_.getMessageOrBuilder(); } else { if (identifierCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } } /** *
     * A set of identifiers at least one must match in order to define the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Set or_ids = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder> getOrIdsFieldBuilder() { if (orIdsBuilder_ == null) { if (!(identifierCase_ == 2)) { identifier_ = io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.getDefaultInstance(); } orIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.SetOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3alpha.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) = { ... } */ 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) = { ... } */ 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) = { ... } */ public Builder clearAny() { if (identifierCase_ == 3) { identifierCase_ = 0; identifier_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.AuthenticatedOrBuilder> authenticatedBuilder_; /** *
     * Authenticated attributes that identify the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Authenticated authenticated = 4; */ public boolean hasAuthenticated() { return identifierCase_ == 4; } /** *
     * Authenticated attributes that identify the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Authenticated authenticated = 4; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated getAuthenticated() { if (authenticatedBuilder_ == null) { if (identifierCase_ == 4) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.getDefaultInstance(); } else { if (identifierCase_ == 4) { return authenticatedBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.getDefaultInstance(); } } /** *
     * Authenticated attributes that identify the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Authenticated authenticated = 4; */ public Builder setAuthenticated(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated authenticated = 4; */ public Builder setAuthenticated( io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated authenticated = 4; */ public Builder mergeAuthenticated(io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated value) { if (authenticatedBuilder_ == null) { if (identifierCase_ == 4 && identifier_ != io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.getDefaultInstance()) { identifier_ = io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.newBuilder((io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) identifier_) .mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { if (identifierCase_ == 4) { authenticatedBuilder_.mergeFrom(value); } authenticatedBuilder_.setMessage(value); } identifierCase_ = 4; return this; } /** *
     * Authenticated attributes that identify the downstream.
     * 
* * .envoy.config.rbac.v3alpha.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.v3alpha.Principal.Authenticated authenticated = 4; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.Builder getAuthenticatedBuilder() { return getAuthenticatedFieldBuilder().getBuilder(); } /** *
     * Authenticated attributes that identify the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Authenticated authenticated = 4; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal.AuthenticatedOrBuilder getAuthenticatedOrBuilder() { if ((identifierCase_ == 4) && (authenticatedBuilder_ != null)) { return authenticatedBuilder_.getMessageOrBuilder(); } else { if (identifierCase_ == 4) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.getDefaultInstance(); } } /** *
     * Authenticated attributes that identify the downstream.
     * 
* * .envoy.config.rbac.v3alpha.Principal.Authenticated authenticated = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.AuthenticatedOrBuilder> getAuthenticatedFieldBuilder() { if (authenticatedBuilder_ == null) { if (!(identifierCase_ == 4)) { identifier_ = io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.getDefaultInstance(); } authenticatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.AuthenticatedOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Authenticated) identifier_, getParentForChildren(), isClean()); identifier_ = null; } identifierCase_ = 4; onChanged();; return authenticatedBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.CidrRange, io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder, io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder> sourceIpBuilder_; /** *
     * A CIDR block that describes the downstream IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public boolean hasSourceIp() { return identifierCase_ == 5; } /** *
     * A CIDR block that describes the downstream IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRange getSourceIp() { if (sourceIpBuilder_ == null) { if (identifierCase_ == 5) { return (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_; } return io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } else { if (identifierCase_ == 5) { return sourceIpBuilder_.getMessage(); } return io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } } /** *
     * A CIDR block that describes the downstream IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public Builder setSourceIp(io.envoyproxy.envoy.api.v3alpha.core.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.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public Builder setSourceIp( io.envoyproxy.envoy.api.v3alpha.core.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.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public Builder mergeSourceIp(io.envoyproxy.envoy.api.v3alpha.core.CidrRange value) { if (sourceIpBuilder_ == null) { if (identifierCase_ == 5 && identifier_ != io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance()) { identifier_ = io.envoyproxy.envoy.api.v3alpha.core.CidrRange.newBuilder((io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_) .mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { if (identifierCase_ == 5) { sourceIpBuilder_.mergeFrom(value); } sourceIpBuilder_.setMessage(value); } identifierCase_ = 5; return this; } /** *
     * A CIDR block that describes the downstream IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ 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.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder getSourceIpBuilder() { return getSourceIpFieldBuilder().getBuilder(); } /** *
     * A CIDR block that describes the downstream IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder getSourceIpOrBuilder() { if ((identifierCase_ == 5) && (sourceIpBuilder_ != null)) { return sourceIpBuilder_.getMessageOrBuilder(); } else { if (identifierCase_ == 5) { return (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_; } return io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } } /** *
     * A CIDR block that describes the downstream IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange source_ip = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.CidrRange, io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder, io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder> getSourceIpFieldBuilder() { if (sourceIpBuilder_ == null) { if (!(identifierCase_ == 5)) { identifier_ = io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } sourceIpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.CidrRange, io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder, io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder>( (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) identifier_, getParentForChildren(), isClean()); identifier_ = null; } identifierCase_ = 5; onChanged();; return sourceIpBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder> headerBuilder_; /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ 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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher getHeader() { if (headerBuilder_ == null) { if (identifierCase_ == 6) { return (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_; } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } else { if (identifierCase_ == 6) { return headerBuilder_.getMessage(); } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ public Builder setHeader(io.envoyproxy.envoy.api.v3alpha.route.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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ public Builder setHeader( io.envoyproxy.envoy.api.v3alpha.route.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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ public Builder mergeHeader(io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher value) { if (headerBuilder_ == null) { if (identifierCase_ == 6 && identifier_ != io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance()) { identifier_ = io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.newBuilder((io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_) .mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { if (identifierCase_ == 6) { headerBuilder_.mergeFrom(value); } 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.
     * 
* * .envoy.api.v3alpha.route.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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ public io.envoyproxy.envoy.api.v3alpha.route.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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder getHeaderOrBuilder() { if ((identifierCase_ == 6) && (headerBuilder_ != null)) { return headerBuilder_.getMessageOrBuilder(); } else { if (identifierCase_ == 6) { return (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_; } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { if (!(identifierCase_ == 6)) { identifier_ = io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder>( (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) identifier_, getParentForChildren(), isClean()); identifier_ = null; } identifierCase_ = 6; onChanged();; return headerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.MetadataMatcher, io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder> metadataBuilder_; /** *
     * Metadata that describes additional information about the principal.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public boolean hasMetadata() { return identifierCase_ == 7; } /** *
     * Metadata that describes additional information about the principal.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcher getMetadata() { if (metadataBuilder_ == null) { if (identifierCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_; } return io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } else { if (identifierCase_ == 7) { return metadataBuilder_.getMessage(); } return io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } } /** *
     * Metadata that describes additional information about the principal.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public Builder setMetadata(io.envoyproxy.envoy.type.matcher.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.MetadataMatcher metadata = 7; */ public Builder setMetadata( io.envoyproxy.envoy.type.matcher.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.MetadataMatcher metadata = 7; */ public Builder mergeMetadata(io.envoyproxy.envoy.type.matcher.MetadataMatcher value) { if (metadataBuilder_ == null) { if (identifierCase_ == 7 && identifier_ != io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance()) { identifier_ = io.envoyproxy.envoy.type.matcher.MetadataMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_) .mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { if (identifierCase_ == 7) { metadataBuilder_.mergeFrom(value); } metadataBuilder_.setMessage(value); } identifierCase_ = 7; return this; } /** *
     * Metadata that describes additional information about the principal.
     * 
* * .envoy.type.matcher.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.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** *
     * Metadata that describes additional information about the principal.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder getMetadataOrBuilder() { if ((identifierCase_ == 7) && (metadataBuilder_ != null)) { return metadataBuilder_.getMessageOrBuilder(); } else { if (identifierCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_; } return io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } } /** *
     * Metadata that describes additional information about the principal.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.MetadataMatcher, io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { if (!(identifierCase_ == 7)) { identifier_ = io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.MetadataMatcher, io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder>( (io.envoyproxy.envoy.type.matcher.MetadataMatcher) identifier_, getParentForChildren(), isClean()); identifier_ = null; } identifierCase_ = 7; onChanged();; return metadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal not_id = 8; */ 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.v3alpha.Principal not_id = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Principal getNotId() { if (notIdBuilder_ == null) { if (identifierCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Principal.getDefaultInstance(); } else { if (identifierCase_ == 8) { return notIdBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal not_id = 8; */ public Builder setNotId(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal not_id = 8; */ public Builder setNotId( io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal not_id = 8; */ public Builder mergeNotId(io.envoyproxy.envoy.config.rbac.v3alpha.Principal value) { if (notIdBuilder_ == null) { if (identifierCase_ == 8 && identifier_ != io.envoyproxy.envoy.config.rbac.v3alpha.Principal.getDefaultInstance()) { identifier_ = io.envoyproxy.envoy.config.rbac.v3alpha.Principal.newBuilder((io.envoyproxy.envoy.config.rbac.v3alpha.Principal) identifier_) .mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { if (identifierCase_ == 8) { notIdBuilder_.mergeFrom(value); } 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.v3alpha.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.v3alpha.Principal not_id = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal not_id = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.PrincipalOrBuilder getNotIdOrBuilder() { if ((identifierCase_ == 8) && (notIdBuilder_ != null)) { return notIdBuilder_.getMessageOrBuilder(); } else { if (identifierCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Principal) identifier_; } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal not_id = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.PrincipalOrBuilder> getNotIdFieldBuilder() { if (notIdBuilder_ == null) { if (!(identifierCase_ == 8)) { identifier_ = io.envoyproxy.envoy.config.rbac.v3alpha.Principal.getDefaultInstance(); } notIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Principal, io.envoyproxy.envoy.config.rbac.v3alpha.Principal.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.PrincipalOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal) } // @@protoc_insertion_point(class_scope:envoy.config.rbac.v3alpha.Principal) private static final io.envoyproxy.envoy.config.rbac.v3alpha.Principal DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3alpha.Principal(); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Principal getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy