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

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

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/rbac/v3/rbac.proto

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

/**
 * 
 * Permission defines an action (or actions) that a principal can take.
 * [#next-free-field: 13]
 * 
* * Protobuf type {@code envoy.config.rbac.v3.Permission} */ public final class Permission extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.rbac.v3.Permission) PermissionOrBuilder { private static final long serialVersionUID = 0L; // Use Permission.newBuilder() to construct. private Permission(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Permission() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Permission(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Permission( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder subBuilder = null; if (ruleCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Permission.Set.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder subBuilder = null; if (ruleCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Permission.Set.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 2; break; } case 24: { rule_ = input.readBool(); ruleCase_ = 3; break; } case 34: { io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder subBuilder = null; if (ruleCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.HeaderMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 4; break; } case 42: { io.envoyproxy.envoy.config.core.v3.CidrRange.Builder subBuilder = null; if (ruleCase_ == 5) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.CidrRange) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.CidrRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.CidrRange) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 5; break; } case 48: { rule_ = input.readUInt32(); ruleCase_ = 6; break; } case 58: { io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder subBuilder = null; if (ruleCase_ == 7) { subBuilder = ((io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 7; break; } case 66: { io.envoyproxy.envoy.config.rbac.v3.Permission.Builder subBuilder = null; if (ruleCase_ == 8) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3.Permission) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Permission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Permission) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 8; break; } case 74: { io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder subBuilder = null; if (ruleCase_ == 9) { subBuilder = ((io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.StringMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 9; break; } case 82: { io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder subBuilder = null; if (ruleCase_ == 10) { subBuilder = ((io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.PathMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 10; break; } case 90: { io.envoyproxy.envoy.type.v3.Int32Range.Builder subBuilder = null; if (ruleCase_ == 11) { subBuilder = ((io.envoyproxy.envoy.type.v3.Int32Range) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.type.v3.Int32Range.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.v3.Int32Range) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 11; break; } case 98: { io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder subBuilder = null; if (ruleCase_ == 12) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 12; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3.Permission.class, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder.class); } public interface SetOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.rbac.v3.Permission.Set) com.google.protobuf.MessageOrBuilder { /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ java.util.List getRulesList(); /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.rbac.v3.Permission getRules(int index); /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ int getRulesCount(); /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ java.util.List getRulesOrBuilderList(); /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder getRulesOrBuilder( int index); } /** *
   * Used in the ``and_rules`` and ``or_rules`` fields in the ``rule`` oneof. Depending on the context,
   * each are applied with the associated behavior.
   * 
* * Protobuf type {@code envoy.config.rbac.v3.Permission.Set} */ public static final class Set extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.rbac.v3.Permission.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() { rules_ = 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)) { rules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rules_.add( input.readMessage(io.envoyproxy.envoy.config.rbac.v3.Permission.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_Set_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_Set_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3.Permission.Set.class, io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder.class); } public static final int RULES_FIELD_NUMBER = 1; private java.util.List rules_; /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getRulesList() { return rules_; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getRulesOrBuilderList() { return rules_; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission getRules(int index) { return rules_.get(index); } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder getRulesOrBuilder( int index) { return rules_.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 < rules_.size(); i++) { output.writeMessage(1, rules_.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 < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, rules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.config.rbac.v3.Permission.Set)) { return super.equals(obj); } io.envoyproxy.envoy.config.rbac.v3.Permission.Set other = (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) obj; if (!getRulesList() .equals(other.getRulesList())) 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 (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.rbac.v3.Permission.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_rules`` and ``or_rules`` fields in the ``rule`` oneof. Depending on the context,
     * each are applied with the associated behavior.
     * 
* * Protobuf type {@code envoy.config.rbac.v3.Permission.Set} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3.Permission.Set) io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_Set_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_Set_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3.Permission.Set.class, io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder.class); } // Construct using io.envoyproxy.envoy.config.rbac.v3.Permission.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) { getRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rulesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_Set_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.Set getDefaultInstanceForType() { return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.Set build() { io.envoyproxy.envoy.config.rbac.v3.Permission.Set result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.Set buildPartial() { io.envoyproxy.envoy.config.rbac.v3.Permission.Set result = new io.envoyproxy.envoy.config.rbac.v3.Permission.Set(this); int from_bitField0_ = bitField0_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000001); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.config.rbac.v3.Permission.Set) { return mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Permission.Set)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3.Permission.Set other) { if (other == io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance()) return this; if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.config.rbac.v3.Permission.Set parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder> rulesBuilder_; /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3.Permission getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder setRules( int index, io.envoyproxy.envoy.config.rbac.v3.Permission value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder setRules( int index, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addRules(io.envoyproxy.envoy.config.rbac.v3.Permission value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( int index, io.envoyproxy.envoy.config.rbac.v3.Permission value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( io.envoyproxy.envoy.config.rbac.v3.Permission.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( int index, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3.Permission.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3.Permission.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance()); } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3.Permission.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance()); } /** * repeated .envoy.config.rbac.v3.Permission rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder>( rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.config.rbac.v3.Permission.Set) } // @@protoc_insertion_point(class_scope:envoy.config.rbac.v3.Permission.Set) private static final io.envoyproxy.envoy.config.rbac.v3.Permission.Set DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3.Permission.Set(); } public static io.envoyproxy.envoy.config.rbac.v3.Permission.Set getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Set parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Set(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.Set getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int ruleCase_ = 0; private java.lang.Object rule_; public enum RuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AND_RULES(1), OR_RULES(2), ANY(3), HEADER(4), URL_PATH(10), DESTINATION_IP(5), DESTINATION_PORT(6), DESTINATION_PORT_RANGE(11), METADATA(7), NOT_RULE(8), REQUESTED_SERVER_NAME(9), MATCHER(12), RULE_NOT_SET(0); private final int value; private RuleCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RuleCase valueOf(int value) { return forNumber(value); } public static RuleCase forNumber(int value) { switch (value) { case 1: return AND_RULES; case 2: return OR_RULES; case 3: return ANY; case 4: return HEADER; case 10: return URL_PATH; case 5: return DESTINATION_IP; case 6: return DESTINATION_PORT; case 11: return DESTINATION_PORT_RANGE; case 7: return METADATA; case 8: return NOT_RULE; case 9: return REQUESTED_SERVER_NAME; case 12: return MATCHER; case 0: return RULE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RuleCase getRuleCase() { return RuleCase.forNumber( ruleCase_); } public static final int AND_RULES_FIELD_NUMBER = 1; /** *
   * A set of rules that all must match in order to define the action.
   * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; * @return Whether the andRules field is set. */ @java.lang.Override public boolean hasAndRules() { return ruleCase_ == 1; } /** *
   * A set of rules that all must match in order to define the action.
   * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; * @return The andRules. */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.Set getAndRules() { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } /** *
   * A set of rules that all must match in order to define the action.
   * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder getAndRulesOrBuilder() { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } public static final int OR_RULES_FIELD_NUMBER = 2; /** *
   * A set of rules where at least one must match in order to define the action.
   * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; * @return Whether the orRules field is set. */ @java.lang.Override public boolean hasOrRules() { return ruleCase_ == 2; } /** *
   * A set of rules where at least one must match in order to define the action.
   * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; * @return The orRules. */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.Set getOrRules() { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } /** *
   * A set of rules where at least one must match in order to define the action.
   * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder getOrRulesOrBuilder() { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } public static final int ANY_FIELD_NUMBER = 3; /** *
   * When any is set, it matches any action.
   * 
* * bool any = 3 [(.validate.rules) = { ... } * @return Whether the any field is set. */ @java.lang.Override public boolean hasAny() { return ruleCase_ == 3; } /** *
   * When any is set, it matches any action.
   * 
* * bool any = 3 [(.validate.rules) = { ... } * @return The any. */ @java.lang.Override public boolean getAny() { if (ruleCase_ == 3) { return (java.lang.Boolean) rule_; } return false; } public static final int HEADER_FIELD_NUMBER = 4; /** *
   * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
   * available for HTTP request.
   * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
   * field if you want to match the URL path without the query and fragment string.
   * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; * @return Whether the header field is set. */ @java.lang.Override public boolean hasHeader() { return ruleCase_ == 4; } /** *
   * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
   * available for HTTP request.
   * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
   * field if you want to match the URL path without the query and fragment string.
   * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; * @return The header. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.HeaderMatcher getHeader() { if (ruleCase_ == 4) { return (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_; } return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance(); } /** *
   * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
   * available for HTTP request.
   * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
   * field if you want to match the URL path without the query and fragment string.
   * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder getHeaderOrBuilder() { if (ruleCase_ == 4) { return (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_; } return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance(); } public static final int URL_PATH_FIELD_NUMBER = 10; /** *
   * A URL path on the incoming HTTP request. Only available for HTTP.
   * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; * @return Whether the urlPath field is set. */ @java.lang.Override public boolean hasUrlPath() { return ruleCase_ == 10; } /** *
   * A URL path on the incoming HTTP request. Only available for HTTP.
   * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; * @return The urlPath. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.PathMatcher getUrlPath() { if (ruleCase_ == 10) { return (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance(); } /** *
   * A URL path on the incoming HTTP request. Only available for HTTP.
   * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder getUrlPathOrBuilder() { if (ruleCase_ == 10) { return (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance(); } public static final int DESTINATION_IP_FIELD_NUMBER = 5; /** *
   * A CIDR block that describes the destination IP.
   * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; * @return Whether the destinationIp field is set. */ @java.lang.Override public boolean hasDestinationIp() { return ruleCase_ == 5; } /** *
   * A CIDR block that describes the destination IP.
   * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; * @return The destinationIp. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.CidrRange getDestinationIp() { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.config.core.v3.CidrRange) rule_; } return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance(); } /** *
   * A CIDR block that describes the destination IP.
   * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder getDestinationIpOrBuilder() { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.config.core.v3.CidrRange) rule_; } return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance(); } public static final int DESTINATION_PORT_FIELD_NUMBER = 6; /** *
   * A port number that describes the destination port connecting to.
   * 
* * uint32 destination_port = 6 [(.validate.rules) = { ... } * @return Whether the destinationPort field is set. */ @java.lang.Override public boolean hasDestinationPort() { return ruleCase_ == 6; } /** *
   * A port number that describes the destination port connecting to.
   * 
* * uint32 destination_port = 6 [(.validate.rules) = { ... } * @return The destinationPort. */ @java.lang.Override public int getDestinationPort() { if (ruleCase_ == 6) { return (java.lang.Integer) rule_; } return 0; } public static final int DESTINATION_PORT_RANGE_FIELD_NUMBER = 11; /** *
   * A port number range that describes a range of destination ports connecting to.
   * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; * @return Whether the destinationPortRange field is set. */ @java.lang.Override public boolean hasDestinationPortRange() { return ruleCase_ == 11; } /** *
   * A port number range that describes a range of destination ports connecting to.
   * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; * @return The destinationPortRange. */ @java.lang.Override public io.envoyproxy.envoy.type.v3.Int32Range getDestinationPortRange() { if (ruleCase_ == 11) { return (io.envoyproxy.envoy.type.v3.Int32Range) rule_; } return io.envoyproxy.envoy.type.v3.Int32Range.getDefaultInstance(); } /** *
   * A port number range that describes a range of destination ports connecting to.
   * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; */ @java.lang.Override public io.envoyproxy.envoy.type.v3.Int32RangeOrBuilder getDestinationPortRangeOrBuilder() { if (ruleCase_ == 11) { return (io.envoyproxy.envoy.type.v3.Int32Range) rule_; } return io.envoyproxy.envoy.type.v3.Int32Range.getDefaultInstance(); } public static final int METADATA_FIELD_NUMBER = 7; /** *
   * Metadata that describes additional information about the action.
   * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return ruleCase_ == 7; } /** *
   * Metadata that describes additional information about the action.
   * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; * @return The metadata. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher getMetadata() { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance(); } /** *
   * Metadata that describes additional information about the action.
   * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder getMetadataOrBuilder() { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance(); } public static final int NOT_RULE_FIELD_NUMBER = 8; /** *
   * Negates matching the provided permission. For instance, if the value of
   * ``not_rule`` would match, this permission would not match. Conversely, if
   * the value of ``not_rule`` would not match, this permission would match.
   * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; * @return Whether the notRule field is set. */ @java.lang.Override public boolean hasNotRule() { return ruleCase_ == 8; } /** *
   * Negates matching the provided permission. For instance, if the value of
   * ``not_rule`` would match, this permission would not match. Conversely, if
   * the value of ``not_rule`` would not match, this permission would match.
   * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; * @return The notRule. */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission getNotRule() { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3.Permission) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance(); } /** *
   * Negates matching the provided permission. For instance, if the value of
   * ``not_rule`` would match, this permission would not match. Conversely, if
   * the value of ``not_rule`` would not match, this permission would match.
   * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder getNotRuleOrBuilder() { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3.Permission) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance(); } public static final int REQUESTED_SERVER_NAME_FIELD_NUMBER = 9; /** *
   * The request server from the client's connection request. This is
   * typically TLS SNI.
   * .. attention::
   *   The behavior of this field may be affected by how Envoy is configured
   *   as explained below.
   *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
   *     filter is not added, and if a ``FilterChainMatch`` is not defined for
   *     the :ref:`server name
   *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
   *     a TLS connection's requested SNI server name will be treated as if it
   *     wasn't present.
   *   * A :ref:`listener filter <arch_overview_listener_filters>` may
   *     overwrite a connection's requested server name within Envoy.
   * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
   * setup SNI.
   * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; * @return Whether the requestedServerName field is set. */ @java.lang.Override public boolean hasRequestedServerName() { return ruleCase_ == 9; } /** *
   * The request server from the client's connection request. This is
   * typically TLS SNI.
   * .. attention::
   *   The behavior of this field may be affected by how Envoy is configured
   *   as explained below.
   *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
   *     filter is not added, and if a ``FilterChainMatch`` is not defined for
   *     the :ref:`server name
   *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
   *     a TLS connection's requested SNI server name will be treated as if it
   *     wasn't present.
   *   * A :ref:`listener filter <arch_overview_listener_filters>` may
   *     overwrite a connection's requested server name within Envoy.
   * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
   * setup SNI.
   * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; * @return The requestedServerName. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.StringMatcher getRequestedServerName() { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } /** *
   * The request server from the client's connection request. This is
   * typically TLS SNI.
   * .. attention::
   *   The behavior of this field may be affected by how Envoy is configured
   *   as explained below.
   *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
   *     filter is not added, and if a ``FilterChainMatch`` is not defined for
   *     the :ref:`server name
   *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
   *     a TLS connection's requested SNI server name will be treated as if it
   *     wasn't present.
   *   * A :ref:`listener filter <arch_overview_listener_filters>` may
   *     overwrite a connection's requested server name within Envoy.
   * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
   * setup SNI.
   * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getRequestedServerNameOrBuilder() { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } public static final int MATCHER_FIELD_NUMBER = 12; /** *
   * Extension for configuring custom matchers for RBAC.
   * [#extension-category: envoy.rbac.matchers]
   * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; * @return Whether the matcher field is set. */ @java.lang.Override public boolean hasMatcher() { return ruleCase_ == 12; } /** *
   * Extension for configuring custom matchers for RBAC.
   * [#extension-category: envoy.rbac.matchers]
   * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; * @return The matcher. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getMatcher() { if (ruleCase_ == 12) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } /** *
   * Extension for configuring custom matchers for RBAC.
   * [#extension-category: envoy.rbac.matchers]
   * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getMatcherOrBuilder() { if (ruleCase_ == 12) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.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 (ruleCase_ == 1) { output.writeMessage(1, (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_); } if (ruleCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_); } if (ruleCase_ == 3) { output.writeBool( 3, (boolean)((java.lang.Boolean) rule_)); } if (ruleCase_ == 4) { output.writeMessage(4, (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_); } if (ruleCase_ == 5) { output.writeMessage(5, (io.envoyproxy.envoy.config.core.v3.CidrRange) rule_); } if (ruleCase_ == 6) { output.writeUInt32( 6, (int)((java.lang.Integer) rule_)); } if (ruleCase_ == 7) { output.writeMessage(7, (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_); } if (ruleCase_ == 8) { output.writeMessage(8, (io.envoyproxy.envoy.config.rbac.v3.Permission) rule_); } if (ruleCase_ == 9) { output.writeMessage(9, (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_); } if (ruleCase_ == 10) { output.writeMessage(10, (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_); } if (ruleCase_ == 11) { output.writeMessage(11, (io.envoyproxy.envoy.type.v3.Int32Range) rule_); } if (ruleCase_ == 12) { output.writeMessage(12, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ruleCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_); } if (ruleCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_); } if (ruleCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 3, (boolean)((java.lang.Boolean) rule_)); } if (ruleCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_); } if (ruleCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.envoyproxy.envoy.config.core.v3.CidrRange) rule_); } if (ruleCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 6, (int)((java.lang.Integer) rule_)); } if (ruleCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_); } if (ruleCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.envoyproxy.envoy.config.rbac.v3.Permission) rule_); } if (ruleCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_); } if (ruleCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_); } if (ruleCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (io.envoyproxy.envoy.type.v3.Int32Range) rule_); } if (ruleCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.config.rbac.v3.Permission)) { return super.equals(obj); } io.envoyproxy.envoy.config.rbac.v3.Permission other = (io.envoyproxy.envoy.config.rbac.v3.Permission) obj; if (!getRuleCase().equals(other.getRuleCase())) return false; switch (ruleCase_) { case 1: if (!getAndRules() .equals(other.getAndRules())) return false; break; case 2: if (!getOrRules() .equals(other.getOrRules())) return false; break; case 3: if (getAny() != other.getAny()) return false; break; case 4: if (!getHeader() .equals(other.getHeader())) return false; break; case 10: if (!getUrlPath() .equals(other.getUrlPath())) return false; break; case 5: if (!getDestinationIp() .equals(other.getDestinationIp())) return false; break; case 6: if (getDestinationPort() != other.getDestinationPort()) return false; break; case 11: if (!getDestinationPortRange() .equals(other.getDestinationPortRange())) return false; break; case 7: if (!getMetadata() .equals(other.getMetadata())) return false; break; case 8: if (!getNotRule() .equals(other.getNotRule())) return false; break; case 9: if (!getRequestedServerName() .equals(other.getRequestedServerName())) return false; break; case 12: if (!getMatcher() .equals(other.getMatcher())) 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 (ruleCase_) { case 1: hash = (37 * hash) + AND_RULES_FIELD_NUMBER; hash = (53 * hash) + getAndRules().hashCode(); break; case 2: hash = (37 * hash) + OR_RULES_FIELD_NUMBER; hash = (53 * hash) + getOrRules().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) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); break; case 10: hash = (37 * hash) + URL_PATH_FIELD_NUMBER; hash = (53 * hash) + getUrlPath().hashCode(); break; case 5: hash = (37 * hash) + DESTINATION_IP_FIELD_NUMBER; hash = (53 * hash) + getDestinationIp().hashCode(); break; case 6: hash = (37 * hash) + DESTINATION_PORT_FIELD_NUMBER; hash = (53 * hash) + getDestinationPort(); break; case 11: hash = (37 * hash) + DESTINATION_PORT_RANGE_FIELD_NUMBER; hash = (53 * hash) + getDestinationPortRange().hashCode(); break; case 7: hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); break; case 8: hash = (37 * hash) + NOT_RULE_FIELD_NUMBER; hash = (53 * hash) + getNotRule().hashCode(); break; case 9: hash = (37 * hash) + REQUESTED_SERVER_NAME_FIELD_NUMBER; hash = (53 * hash) + getRequestedServerName().hashCode(); break; case 12: hash = (37 * hash) + MATCHER_FIELD_NUMBER; hash = (53 * hash) + getMatcher().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.rbac.v3.Permission parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.rbac.v3.Permission 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; } /** *
   * Permission defines an action (or actions) that a principal can take.
   * [#next-free-field: 13]
   * 
* * Protobuf type {@code envoy.config.rbac.v3.Permission} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3.Permission) io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3.Permission.class, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder.class); } // Construct using io.envoyproxy.envoy.config.rbac.v3.Permission.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(); ruleCase_ = 0; rule_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.rbac.v3.RbacProto.internal_static_envoy_config_rbac_v3_Permission_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission getDefaultInstanceForType() { return io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission build() { io.envoyproxy.envoy.config.rbac.v3.Permission result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission buildPartial() { io.envoyproxy.envoy.config.rbac.v3.Permission result = new io.envoyproxy.envoy.config.rbac.v3.Permission(this); if (ruleCase_ == 1) { if (andRulesBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = andRulesBuilder_.build(); } } if (ruleCase_ == 2) { if (orRulesBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = orRulesBuilder_.build(); } } if (ruleCase_ == 3) { result.rule_ = rule_; } if (ruleCase_ == 4) { if (headerBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = headerBuilder_.build(); } } if (ruleCase_ == 10) { if (urlPathBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = urlPathBuilder_.build(); } } if (ruleCase_ == 5) { if (destinationIpBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = destinationIpBuilder_.build(); } } if (ruleCase_ == 6) { result.rule_ = rule_; } if (ruleCase_ == 11) { if (destinationPortRangeBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = destinationPortRangeBuilder_.build(); } } if (ruleCase_ == 7) { if (metadataBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = metadataBuilder_.build(); } } if (ruleCase_ == 8) { if (notRuleBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = notRuleBuilder_.build(); } } if (ruleCase_ == 9) { if (requestedServerNameBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = requestedServerNameBuilder_.build(); } } if (ruleCase_ == 12) { if (matcherBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = matcherBuilder_.build(); } } result.ruleCase_ = ruleCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.config.rbac.v3.Permission) { return mergeFrom((io.envoyproxy.envoy.config.rbac.v3.Permission)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3.Permission other) { if (other == io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance()) return this; switch (other.getRuleCase()) { case AND_RULES: { mergeAndRules(other.getAndRules()); break; } case OR_RULES: { mergeOrRules(other.getOrRules()); break; } case ANY: { setAny(other.getAny()); break; } case HEADER: { mergeHeader(other.getHeader()); break; } case URL_PATH: { mergeUrlPath(other.getUrlPath()); break; } case DESTINATION_IP: { mergeDestinationIp(other.getDestinationIp()); break; } case DESTINATION_PORT: { setDestinationPort(other.getDestinationPort()); break; } case DESTINATION_PORT_RANGE: { mergeDestinationPortRange(other.getDestinationPortRange()); break; } case METADATA: { mergeMetadata(other.getMetadata()); break; } case NOT_RULE: { mergeNotRule(other.getNotRule()); break; } case REQUESTED_SERVER_NAME: { mergeRequestedServerName(other.getRequestedServerName()); break; } case MATCHER: { mergeMatcher(other.getMatcher()); break; } case RULE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.config.rbac.v3.Permission parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.rbac.v3.Permission) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int ruleCase_ = 0; private java.lang.Object rule_; public RuleCase getRuleCase() { return RuleCase.forNumber( ruleCase_); } public Builder clearRule() { ruleCase_ = 0; rule_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission.Set, io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder> andRulesBuilder_; /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; * @return Whether the andRules field is set. */ @java.lang.Override public boolean hasAndRules() { return ruleCase_ == 1; } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; * @return The andRules. */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.Set getAndRules() { if (andRulesBuilder_ == null) { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } else { if (ruleCase_ == 1) { return andRulesBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; */ public Builder setAndRules(io.envoyproxy.envoy.config.rbac.v3.Permission.Set value) { if (andRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { andRulesBuilder_.setMessage(value); } ruleCase_ = 1; return this; } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; */ public Builder setAndRules( io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder builderForValue) { if (andRulesBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { andRulesBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 1; return this; } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; */ public Builder mergeAndRules(io.envoyproxy.envoy.config.rbac.v3.Permission.Set value) { if (andRulesBuilder_ == null) { if (ruleCase_ == 1 && rule_ != io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.rbac.v3.Permission.Set.newBuilder((io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 1) { andRulesBuilder_.mergeFrom(value); } else { andRulesBuilder_.setMessage(value); } } ruleCase_ = 1; return this; } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; */ public Builder clearAndRules() { if (andRulesBuilder_ == null) { if (ruleCase_ == 1) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 1) { ruleCase_ = 0; rule_ = null; } andRulesBuilder_.clear(); } return this; } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; */ public io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder getAndRulesBuilder() { return getAndRulesFieldBuilder().getBuilder(); } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder getAndRulesOrBuilder() { if ((ruleCase_ == 1) && (andRulesBuilder_ != null)) { return andRulesBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set and_rules = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission.Set, io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder> getAndRulesFieldBuilder() { if (andRulesBuilder_ == null) { if (!(ruleCase_ == 1)) { rule_ = io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } andRulesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission.Set, io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 1; onChanged();; return andRulesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission.Set, io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder> orRulesBuilder_; /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; * @return Whether the orRules field is set. */ @java.lang.Override public boolean hasOrRules() { return ruleCase_ == 2; } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; * @return The orRules. */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.Set getOrRules() { if (orRulesBuilder_ == null) { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } else { if (ruleCase_ == 2) { return orRulesBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; */ public Builder setOrRules(io.envoyproxy.envoy.config.rbac.v3.Permission.Set value) { if (orRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { orRulesBuilder_.setMessage(value); } ruleCase_ = 2; return this; } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; */ public Builder setOrRules( io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder builderForValue) { if (orRulesBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { orRulesBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 2; return this; } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; */ public Builder mergeOrRules(io.envoyproxy.envoy.config.rbac.v3.Permission.Set value) { if (orRulesBuilder_ == null) { if (ruleCase_ == 2 && rule_ != io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.rbac.v3.Permission.Set.newBuilder((io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 2) { orRulesBuilder_.mergeFrom(value); } else { orRulesBuilder_.setMessage(value); } } ruleCase_ = 2; return this; } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; */ public Builder clearOrRules() { if (orRulesBuilder_ == null) { if (ruleCase_ == 2) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 2) { ruleCase_ = 0; rule_ = null; } orRulesBuilder_.clear(); } return this; } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; */ public io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder getOrRulesBuilder() { return getOrRulesFieldBuilder().getBuilder(); } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder getOrRulesOrBuilder() { if ((ruleCase_ == 2) && (orRulesBuilder_ != null)) { return orRulesBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3.Permission.Set or_rules = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission.Set, io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder> getOrRulesFieldBuilder() { if (orRulesBuilder_ == null) { if (!(ruleCase_ == 2)) { rule_ = io.envoyproxy.envoy.config.rbac.v3.Permission.Set.getDefaultInstance(); } orRulesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission.Set, io.envoyproxy.envoy.config.rbac.v3.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3.Permission.SetOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3.Permission.Set) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 2; onChanged();; return orRulesBuilder_; } /** *
     * When any is set, it matches any action.
     * 
* * bool any = 3 [(.validate.rules) = { ... } * @return Whether the any field is set. */ public boolean hasAny() { return ruleCase_ == 3; } /** *
     * When any is set, it matches any action.
     * 
* * bool any = 3 [(.validate.rules) = { ... } * @return The any. */ public boolean getAny() { if (ruleCase_ == 3) { return (java.lang.Boolean) rule_; } return false; } /** *
     * When any is set, it matches any action.
     * 
* * bool any = 3 [(.validate.rules) = { ... } * @param value The any to set. * @return This builder for chaining. */ public Builder setAny(boolean value) { ruleCase_ = 3; rule_ = value; onChanged(); return this; } /** *
     * When any is set, it matches any action.
     * 
* * bool any = 3 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearAny() { if (ruleCase_ == 3) { ruleCase_ = 0; rule_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder> headerBuilder_; /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; * @return Whether the header field is set. */ @java.lang.Override public boolean hasHeader() { return ruleCase_ == 4; } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; * @return The header. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.HeaderMatcher getHeader() { if (headerBuilder_ == null) { if (ruleCase_ == 4) { return (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_; } return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance(); } else { if (ruleCase_ == 4) { return headerBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance(); } } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; */ public Builder setHeader(io.envoyproxy.envoy.config.route.v3.HeaderMatcher value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } ruleCase_ = 4; return this; } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; */ public Builder setHeader( io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder builderForValue) { if (headerBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 4; return this; } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; */ public Builder mergeHeader(io.envoyproxy.envoy.config.route.v3.HeaderMatcher value) { if (headerBuilder_ == null) { if (ruleCase_ == 4 && rule_ != io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.route.v3.HeaderMatcher.newBuilder((io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 4) { headerBuilder_.mergeFrom(value); } else { headerBuilder_.setMessage(value); } } ruleCase_ = 4; return this; } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; */ public Builder clearHeader() { if (headerBuilder_ == null) { if (ruleCase_ == 4) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 4) { ruleCase_ = 0; rule_ = null; } headerBuilder_.clear(); } return this; } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; */ public io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder getHeaderBuilder() { return getHeaderFieldBuilder().getBuilder(); } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder getHeaderOrBuilder() { if ((ruleCase_ == 4) && (headerBuilder_ != null)) { return headerBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 4) { return (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_; } return io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance(); } } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * Note: the pseudo-header :path includes the query and fragment string. Use the ``url_path``
     * field if you want to match the URL path without the query and fragment string.
     * 
* * .envoy.config.route.v3.HeaderMatcher header = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { if (!(ruleCase_ == 4)) { rule_ = io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance(); } headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder>( (io.envoyproxy.envoy.config.route.v3.HeaderMatcher) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 4; onChanged();; return headerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.PathMatcher, io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder> urlPathBuilder_; /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; * @return Whether the urlPath field is set. */ @java.lang.Override public boolean hasUrlPath() { return ruleCase_ == 10; } /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; * @return The urlPath. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.PathMatcher getUrlPath() { if (urlPathBuilder_ == null) { if (ruleCase_ == 10) { return (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance(); } else { if (ruleCase_ == 10) { return urlPathBuilder_.getMessage(); } return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance(); } } /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; */ public Builder setUrlPath(io.envoyproxy.envoy.type.matcher.v3.PathMatcher value) { if (urlPathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { urlPathBuilder_.setMessage(value); } ruleCase_ = 10; return this; } /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; */ public Builder setUrlPath( io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder builderForValue) { if (urlPathBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { urlPathBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 10; return this; } /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; */ public Builder mergeUrlPath(io.envoyproxy.envoy.type.matcher.v3.PathMatcher value) { if (urlPathBuilder_ == null) { if (ruleCase_ == 10 && rule_ != io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.type.matcher.v3.PathMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 10) { urlPathBuilder_.mergeFrom(value); } else { urlPathBuilder_.setMessage(value); } } ruleCase_ = 10; return this; } /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; */ public Builder clearUrlPath() { if (urlPathBuilder_ == null) { if (ruleCase_ == 10) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 10) { ruleCase_ = 0; rule_ = null; } urlPathBuilder_.clear(); } return this; } /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; */ public io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder getUrlPathBuilder() { return getUrlPathFieldBuilder().getBuilder(); } /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder getUrlPathOrBuilder() { if ((ruleCase_ == 10) && (urlPathBuilder_ != null)) { return urlPathBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 10) { return (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance(); } } /** *
     * A URL path on the incoming HTTP request. Only available for HTTP.
     * 
* * .envoy.type.matcher.v3.PathMatcher url_path = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.PathMatcher, io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder> getUrlPathFieldBuilder() { if (urlPathBuilder_ == null) { if (!(ruleCase_ == 10)) { rule_ = io.envoyproxy.envoy.type.matcher.v3.PathMatcher.getDefaultInstance(); } urlPathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.PathMatcher, io.envoyproxy.envoy.type.matcher.v3.PathMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.PathMatcherOrBuilder>( (io.envoyproxy.envoy.type.matcher.v3.PathMatcher) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 10; onChanged();; return urlPathBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder> destinationIpBuilder_; /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; * @return Whether the destinationIp field is set. */ @java.lang.Override public boolean hasDestinationIp() { return ruleCase_ == 5; } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; * @return The destinationIp. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.CidrRange getDestinationIp() { if (destinationIpBuilder_ == null) { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.config.core.v3.CidrRange) rule_; } return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance(); } else { if (ruleCase_ == 5) { return destinationIpBuilder_.getMessage(); } return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance(); } } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; */ public Builder setDestinationIp(io.envoyproxy.envoy.config.core.v3.CidrRange value) { if (destinationIpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { destinationIpBuilder_.setMessage(value); } ruleCase_ = 5; return this; } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; */ public Builder setDestinationIp( io.envoyproxy.envoy.config.core.v3.CidrRange.Builder builderForValue) { if (destinationIpBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { destinationIpBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 5; return this; } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; */ public Builder mergeDestinationIp(io.envoyproxy.envoy.config.core.v3.CidrRange value) { if (destinationIpBuilder_ == null) { if (ruleCase_ == 5 && rule_ != io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.core.v3.CidrRange.newBuilder((io.envoyproxy.envoy.config.core.v3.CidrRange) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 5) { destinationIpBuilder_.mergeFrom(value); } else { destinationIpBuilder_.setMessage(value); } } ruleCase_ = 5; return this; } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; */ public Builder clearDestinationIp() { if (destinationIpBuilder_ == null) { if (ruleCase_ == 5) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 5) { ruleCase_ = 0; rule_ = null; } destinationIpBuilder_.clear(); } return this; } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; */ public io.envoyproxy.envoy.config.core.v3.CidrRange.Builder getDestinationIpBuilder() { return getDestinationIpFieldBuilder().getBuilder(); } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder getDestinationIpOrBuilder() { if ((ruleCase_ == 5) && (destinationIpBuilder_ != null)) { return destinationIpBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.config.core.v3.CidrRange) rule_; } return io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance(); } } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.config.core.v3.CidrRange destination_ip = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder> getDestinationIpFieldBuilder() { if (destinationIpBuilder_ == null) { if (!(ruleCase_ == 5)) { rule_ = io.envoyproxy.envoy.config.core.v3.CidrRange.getDefaultInstance(); } destinationIpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.CidrRange, io.envoyproxy.envoy.config.core.v3.CidrRange.Builder, io.envoyproxy.envoy.config.core.v3.CidrRangeOrBuilder>( (io.envoyproxy.envoy.config.core.v3.CidrRange) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 5; onChanged();; return destinationIpBuilder_; } /** *
     * A port number that describes the destination port connecting to.
     * 
* * uint32 destination_port = 6 [(.validate.rules) = { ... } * @return Whether the destinationPort field is set. */ public boolean hasDestinationPort() { return ruleCase_ == 6; } /** *
     * A port number that describes the destination port connecting to.
     * 
* * uint32 destination_port = 6 [(.validate.rules) = { ... } * @return The destinationPort. */ public int getDestinationPort() { if (ruleCase_ == 6) { return (java.lang.Integer) rule_; } return 0; } /** *
     * A port number that describes the destination port connecting to.
     * 
* * uint32 destination_port = 6 [(.validate.rules) = { ... } * @param value The destinationPort to set. * @return This builder for chaining. */ public Builder setDestinationPort(int value) { ruleCase_ = 6; rule_ = value; onChanged(); return this; } /** *
     * A port number that describes the destination port connecting to.
     * 
* * uint32 destination_port = 6 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearDestinationPort() { if (ruleCase_ == 6) { ruleCase_ = 0; rule_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Int32Range, io.envoyproxy.envoy.type.v3.Int32Range.Builder, io.envoyproxy.envoy.type.v3.Int32RangeOrBuilder> destinationPortRangeBuilder_; /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; * @return Whether the destinationPortRange field is set. */ @java.lang.Override public boolean hasDestinationPortRange() { return ruleCase_ == 11; } /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; * @return The destinationPortRange. */ @java.lang.Override public io.envoyproxy.envoy.type.v3.Int32Range getDestinationPortRange() { if (destinationPortRangeBuilder_ == null) { if (ruleCase_ == 11) { return (io.envoyproxy.envoy.type.v3.Int32Range) rule_; } return io.envoyproxy.envoy.type.v3.Int32Range.getDefaultInstance(); } else { if (ruleCase_ == 11) { return destinationPortRangeBuilder_.getMessage(); } return io.envoyproxy.envoy.type.v3.Int32Range.getDefaultInstance(); } } /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; */ public Builder setDestinationPortRange(io.envoyproxy.envoy.type.v3.Int32Range value) { if (destinationPortRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { destinationPortRangeBuilder_.setMessage(value); } ruleCase_ = 11; return this; } /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; */ public Builder setDestinationPortRange( io.envoyproxy.envoy.type.v3.Int32Range.Builder builderForValue) { if (destinationPortRangeBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { destinationPortRangeBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 11; return this; } /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; */ public Builder mergeDestinationPortRange(io.envoyproxy.envoy.type.v3.Int32Range value) { if (destinationPortRangeBuilder_ == null) { if (ruleCase_ == 11 && rule_ != io.envoyproxy.envoy.type.v3.Int32Range.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.type.v3.Int32Range.newBuilder((io.envoyproxy.envoy.type.v3.Int32Range) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 11) { destinationPortRangeBuilder_.mergeFrom(value); } else { destinationPortRangeBuilder_.setMessage(value); } } ruleCase_ = 11; return this; } /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; */ public Builder clearDestinationPortRange() { if (destinationPortRangeBuilder_ == null) { if (ruleCase_ == 11) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 11) { ruleCase_ = 0; rule_ = null; } destinationPortRangeBuilder_.clear(); } return this; } /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; */ public io.envoyproxy.envoy.type.v3.Int32Range.Builder getDestinationPortRangeBuilder() { return getDestinationPortRangeFieldBuilder().getBuilder(); } /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; */ @java.lang.Override public io.envoyproxy.envoy.type.v3.Int32RangeOrBuilder getDestinationPortRangeOrBuilder() { if ((ruleCase_ == 11) && (destinationPortRangeBuilder_ != null)) { return destinationPortRangeBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 11) { return (io.envoyproxy.envoy.type.v3.Int32Range) rule_; } return io.envoyproxy.envoy.type.v3.Int32Range.getDefaultInstance(); } } /** *
     * A port number range that describes a range of destination ports connecting to.
     * 
* * .envoy.type.v3.Int32Range destination_port_range = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Int32Range, io.envoyproxy.envoy.type.v3.Int32Range.Builder, io.envoyproxy.envoy.type.v3.Int32RangeOrBuilder> getDestinationPortRangeFieldBuilder() { if (destinationPortRangeBuilder_ == null) { if (!(ruleCase_ == 11)) { rule_ = io.envoyproxy.envoy.type.v3.Int32Range.getDefaultInstance(); } destinationPortRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Int32Range, io.envoyproxy.envoy.type.v3.Int32Range.Builder, io.envoyproxy.envoy.type.v3.Int32RangeOrBuilder>( (io.envoyproxy.envoy.type.v3.Int32Range) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 11; onChanged();; return destinationPortRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder> metadataBuilder_; /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return ruleCase_ == 7; } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; * @return The metadata. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher getMetadata() { if (metadataBuilder_ == null) { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance(); } else { if (ruleCase_ == 7) { return metadataBuilder_.getMessage(); } return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance(); } } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; */ public Builder setMetadata(io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } ruleCase_ = 7; return this; } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; */ public Builder setMetadata( io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder builderForValue) { if (metadataBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 7; return this; } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; */ public Builder mergeMetadata(io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher value) { if (metadataBuilder_ == null) { if (ruleCase_ == 7 && rule_ != io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 7) { metadataBuilder_.mergeFrom(value); } else { metadataBuilder_.setMessage(value); } } ruleCase_ = 7; return this; } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { if (ruleCase_ == 7) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 7) { ruleCase_ = 0; rule_ = null; } metadataBuilder_.clear(); } return this; } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder getMetadataOrBuilder() { if ((ruleCase_ == 7) && (metadataBuilder_ != null)) { return metadataBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance(); } } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.v3.MetadataMatcher metadata = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { if (!(ruleCase_ == 7)) { rule_ = io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.getDefaultInstance(); } metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.MetadataMatcherOrBuilder>( (io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 7; onChanged();; return metadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder> notRuleBuilder_; /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; * @return Whether the notRule field is set. */ @java.lang.Override public boolean hasNotRule() { return ruleCase_ == 8; } /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; * @return The notRule. */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission getNotRule() { if (notRuleBuilder_ == null) { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3.Permission) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance(); } else { if (ruleCase_ == 8) { return notRuleBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance(); } } /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; */ public Builder setNotRule(io.envoyproxy.envoy.config.rbac.v3.Permission value) { if (notRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { notRuleBuilder_.setMessage(value); } ruleCase_ = 8; return this; } /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; */ public Builder setNotRule( io.envoyproxy.envoy.config.rbac.v3.Permission.Builder builderForValue) { if (notRuleBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { notRuleBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 8; return this; } /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; */ public Builder mergeNotRule(io.envoyproxy.envoy.config.rbac.v3.Permission value) { if (notRuleBuilder_ == null) { if (ruleCase_ == 8 && rule_ != io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.rbac.v3.Permission.newBuilder((io.envoyproxy.envoy.config.rbac.v3.Permission) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 8) { notRuleBuilder_.mergeFrom(value); } else { notRuleBuilder_.setMessage(value); } } ruleCase_ = 8; return this; } /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; */ public Builder clearNotRule() { if (notRuleBuilder_ == null) { if (ruleCase_ == 8) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 8) { ruleCase_ = 0; rule_ = null; } notRuleBuilder_.clear(); } return this; } /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; */ public io.envoyproxy.envoy.config.rbac.v3.Permission.Builder getNotRuleBuilder() { return getNotRuleFieldBuilder().getBuilder(); } /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder getNotRuleOrBuilder() { if ((ruleCase_ == 8) && (notRuleBuilder_ != null)) { return notRuleBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3.Permission) rule_; } return io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance(); } } /** *
     * Negates matching the provided permission. For instance, if the value of
     * ``not_rule`` would match, this permission would not match. Conversely, if
     * the value of ``not_rule`` would not match, this permission would match.
     * 
* * .envoy.config.rbac.v3.Permission not_rule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder> getNotRuleFieldBuilder() { if (notRuleBuilder_ == null) { if (!(ruleCase_ == 8)) { rule_ = io.envoyproxy.envoy.config.rbac.v3.Permission.getDefaultInstance(); } notRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3.Permission, io.envoyproxy.envoy.config.rbac.v3.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3.PermissionOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3.Permission) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 8; onChanged();; return notRuleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder> requestedServerNameBuilder_; /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; * @return Whether the requestedServerName field is set. */ @java.lang.Override public boolean hasRequestedServerName() { return ruleCase_ == 9; } /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; * @return The requestedServerName. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.StringMatcher getRequestedServerName() { if (requestedServerNameBuilder_ == null) { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } else { if (ruleCase_ == 9) { return requestedServerNameBuilder_.getMessage(); } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } } /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; */ public Builder setRequestedServerName(io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) { if (requestedServerNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { requestedServerNameBuilder_.setMessage(value); } ruleCase_ = 9; return this; } /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; */ public Builder setRequestedServerName( io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder builderForValue) { if (requestedServerNameBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { requestedServerNameBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 9; return this; } /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; */ public Builder mergeRequestedServerName(io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) { if (requestedServerNameBuilder_ == null) { if (ruleCase_ == 9 && rule_ != io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.type.matcher.v3.StringMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 9) { requestedServerNameBuilder_.mergeFrom(value); } else { requestedServerNameBuilder_.setMessage(value); } } ruleCase_ = 9; return this; } /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; */ public Builder clearRequestedServerName() { if (requestedServerNameBuilder_ == null) { if (ruleCase_ == 9) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 9) { ruleCase_ = 0; rule_ = null; } requestedServerNameBuilder_.clear(); } return this; } /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; */ public io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder getRequestedServerNameBuilder() { return getRequestedServerNameFieldBuilder().getBuilder(); } /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getRequestedServerNameOrBuilder() { if ((ruleCase_ == 9) && (requestedServerNameBuilder_ != null)) { return requestedServerNameBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } } /** *
     * The request server from the client's connection request. This is
     * typically TLS SNI.
     * .. attention::
     *   The behavior of this field may be affected by how Envoy is configured
     *   as explained below.
     *   * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
     *     filter is not added, and if a ``FilterChainMatch`` is not defined for
     *     the :ref:`server name
     *     <envoy_v3_api_field_config.listener.v3.FilterChainMatch.server_names>`,
     *     a TLS connection's requested SNI server name will be treated as if it
     *     wasn't present.
     *   * A :ref:`listener filter <arch_overview_listener_filters>` may
     *     overwrite a connection's requested server name within Envoy.
     * Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
     * setup SNI.
     * 
* * .envoy.type.matcher.v3.StringMatcher requested_server_name = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder> getRequestedServerNameFieldBuilder() { if (requestedServerNameBuilder_ == null) { if (!(ruleCase_ == 9)) { rule_ = io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } requestedServerNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder>( (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 9; onChanged();; return requestedServerNameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> matcherBuilder_; /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; * @return Whether the matcher field is set. */ @java.lang.Override public boolean hasMatcher() { return ruleCase_ == 12; } /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; * @return The matcher. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getMatcher() { if (matcherBuilder_ == null) { if (ruleCase_ == 12) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } else { if (ruleCase_ == 12) { return matcherBuilder_.getMessage(); } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; */ public Builder setMatcher(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (matcherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { matcherBuilder_.setMessage(value); } ruleCase_ = 12; return this; } /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; */ public Builder setMatcher( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (matcherBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { matcherBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 12; return this; } /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; */ public Builder mergeMatcher(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (matcherBuilder_ == null) { if (ruleCase_ == 12 && rule_ != io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.newBuilder((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 12) { matcherBuilder_.mergeFrom(value); } else { matcherBuilder_.setMessage(value); } } ruleCase_ = 12; return this; } /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; */ public Builder clearMatcher() { if (matcherBuilder_ == null) { if (ruleCase_ == 12) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 12) { ruleCase_ = 0; rule_ = null; } matcherBuilder_.clear(); } return this; } /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getMatcherBuilder() { return getMatcherFieldBuilder().getBuilder(); } /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getMatcherOrBuilder() { if ((ruleCase_ == 12) && (matcherBuilder_ != null)) { return matcherBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 12) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
     * Extension for configuring custom matchers for RBAC.
     * [#extension-category: envoy.rbac.matchers]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig matcher = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getMatcherFieldBuilder() { if (matcherBuilder_ == null) { if (!(ruleCase_ == 12)) { rule_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } matcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 12; onChanged();; return matcherBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.config.rbac.v3.Permission) } // @@protoc_insertion_point(class_scope:envoy.config.rbac.v3.Permission) private static final io.envoyproxy.envoy.config.rbac.v3.Permission DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3.Permission(); } public static io.envoyproxy.envoy.config.rbac.v3.Permission getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Permission parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Permission(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3.Permission getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy