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

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

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

/**
 * 
 * Permission defines an action (or actions) that a principal can take.
 * 
* * Protobuf type {@code envoy.config.rbac.v3alpha.Permission} */ public final class Permission extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set.Builder subBuilder = null; if (ruleCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder subBuilder = null; if (ruleCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 2; break; } case 24: { ruleCase_ = 3; rule_ = input.readBool(); break; } case 34: { io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder subBuilder = null; if (ruleCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 4; break; } case 42: { io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder subBuilder = null; if (ruleCase_ == 5) { subBuilder = ((io.envoyproxy.envoy.api.v3alpha.core.CidrRange) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.CidrRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.api.v3alpha.core.CidrRange) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 5; break; } case 48: { ruleCase_ = 6; rule_ = input.readUInt32(); break; } case 58: { io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder subBuilder = null; if (ruleCase_ == 7) { subBuilder = ((io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.type.matcher.MetadataMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 7; break; } case 66: { io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder subBuilder = null; if (ruleCase_ == 8) { subBuilder = ((io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.rbac.v3alpha.Permission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 8; break; } case 74: { io.envoyproxy.envoy.type.matcher.StringMatcher.Builder subBuilder = null; if (ruleCase_ == 9) { subBuilder = ((io.envoyproxy.envoy.type.matcher.StringMatcher) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.type.matcher.StringMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.StringMatcher) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 9; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Permission.class, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder.class); } public interface SetOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.rbac.v3alpha.Permission.Set) com.google.protobuf.MessageOrBuilder { /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ java.util.List getRulesList(); /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.rbac.v3alpha.Permission getRules(int index); /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ int getRulesCount(); /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ java.util.List getRulesOrBuilderList(); /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set} */ public static final class Set extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.rbac.v3alpha.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.v3alpha.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 (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.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_Set_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_Set_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.class, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder.class); } public static final int RULES_FIELD_NUMBER = 1; private java.util.List rules_; /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesList() { return rules_; } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesOrBuilderList() { return rules_; } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public int getRulesCount() { return rules_.size(); } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission getRules(int index) { return rules_.get(index); } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set)) { return super.equals(obj); } io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set other = (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.Permission.Set} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3alpha.Permission.Set) io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_Set_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_Set_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.class, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder.class); } // Construct using io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_Set_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set getDefaultInstanceForType() { return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set build() { io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set buildPartial() { io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set result = new io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set) { return mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set other) { if (other == io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.PermissionOrBuilder> rulesBuilder_; /** * repeated .envoy.config.rbac.v3alpha.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.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder setRules( int index, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder setRules( int index, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addRules(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( int index, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( int index, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.PermissionOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.config.rbac.v3alpha.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.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( io.envoyproxy.envoy.config.rbac.v3alpha.Permission.getDefaultInstance()); } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.getDefaultInstance()); } /** * repeated .envoy.config.rbac.v3alpha.Permission rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.PermissionOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set) } // @@protoc_insertion_point(class_scope:envoy.config.rbac.v3alpha.Permission.Set) private static final io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set(); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int ruleCase_ = 0; private java.lang.Object rule_; public enum RuleCase implements com.google.protobuf.Internal.EnumLite { AND_RULES(1), OR_RULES(2), ANY(3), HEADER(4), DESTINATION_IP(5), DESTINATION_PORT(6), METADATA(7), NOT_RULE(8), REQUESTED_SERVER_NAME(9), RULE_NOT_SET(0); private final int value; private RuleCase(int value) { this.value = value; } /** * @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 5: return DESTINATION_IP; case 6: return DESTINATION_PORT; case 7: return METADATA; case 8: return NOT_RULE; case 9: return REQUESTED_SERVER_NAME; 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.v3alpha.Permission.Set and_rules = 1; */ public boolean hasAndRules() { return ruleCase_ == 1; } /** *
   * A set of rules that all must match in order to define the action.
   * 
* * .envoy.config.rbac.v3alpha.Permission.Set and_rules = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set getAndRules() { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } /** *
   * A set of rules that all must match in order to define the action.
   * 
* * .envoy.config.rbac.v3alpha.Permission.Set and_rules = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder getAndRulesOrBuilder() { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set or_rules = 2; */ 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.v3alpha.Permission.Set or_rules = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set getOrRules() { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } /** *
   * A set of rules where at least one must match in order to define the action.
   * 
* * .envoy.config.rbac.v3alpha.Permission.Set or_rules = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder getOrRulesOrBuilder() { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } public static final int ANY_FIELD_NUMBER = 3; /** *
   * When any is set, it matches any action.
   * 
* * bool any = 3 [(.validate.rules) = { ... } */ 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.
   * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ 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.
   * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher getHeader() { if (ruleCase_ == 4) { return (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_; } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } /** *
   * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
   * available for HTTP request.
   * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder getHeaderOrBuilder() { if (ruleCase_ == 4) { return (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_; } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } public static final int DESTINATION_IP_FIELD_NUMBER = 5; /** *
   * A CIDR block that describes the destination IP.
   * 
* * .envoy.api.v3alpha.core.CidrRange destination_ip = 5; */ public boolean hasDestinationIp() { return ruleCase_ == 5; } /** *
   * A CIDR block that describes the destination IP.
   * 
* * .envoy.api.v3alpha.core.CidrRange destination_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRange getDestinationIp() { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) rule_; } return io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } /** *
   * A CIDR block that describes the destination IP.
   * 
* * .envoy.api.v3alpha.core.CidrRange destination_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder getDestinationIpOrBuilder() { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) rule_; } return io.envoyproxy.envoy.api.v3alpha.core.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) = { ... } */ public int getDestinationPort() { if (ruleCase_ == 6) { return (java.lang.Integer) rule_; } return 0; } public static final int METADATA_FIELD_NUMBER = 7; /** *
   * Metadata that describes additional information about the action.
   * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public boolean hasMetadata() { return ruleCase_ == 7; } /** *
   * Metadata that describes additional information about the action.
   * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcher getMetadata() { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } /** *
   * Metadata that describes additional information about the action.
   * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder getMetadataOrBuilder() { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.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.v3alpha.Permission not_rule = 8; */ 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.v3alpha.Permission not_rule = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission getNotRule() { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission not_rule = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.PermissionOrBuilder getNotRuleOrBuilder() { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ 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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ public io.envoyproxy.envoy.type.matcher.StringMatcher getRequestedServerName() { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.type.matcher.StringMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ public io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder getRequestedServerNameOrBuilder() { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.type.matcher.StringMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.StringMatcher.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.v3alpha.Permission.Set) rule_); } if (ruleCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_); } if (ruleCase_ == 3) { output.writeBool( 3, (boolean)((java.lang.Boolean) rule_)); } if (ruleCase_ == 4) { output.writeMessage(4, (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_); } if (ruleCase_ == 5) { output.writeMessage(5, (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) rule_); } if (ruleCase_ == 6) { output.writeUInt32( 6, (int)((java.lang.Integer) rule_)); } if (ruleCase_ == 7) { output.writeMessage(7, (io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_); } if (ruleCase_ == 8) { output.writeMessage(8, (io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_); } if (ruleCase_ == 9) { output.writeMessage(9, (io.envoyproxy.envoy.type.matcher.StringMatcher) 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.v3alpha.Permission.Set) rule_); } if (ruleCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.rbac.v3alpha.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.api.v3alpha.route.HeaderMatcher) rule_); } if (ruleCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.envoyproxy.envoy.api.v3alpha.core.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.MetadataMatcher) rule_); } if (ruleCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_); } if (ruleCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.envoyproxy.envoy.type.matcher.StringMatcher) 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.v3alpha.Permission)) { return super.equals(obj); } io.envoyproxy.envoy.config.rbac.v3alpha.Permission other = (io.envoyproxy.envoy.config.rbac.v3alpha.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 5: if (!getDestinationIp() .equals(other.getDestinationIp())) return false; break; case 6: if (getDestinationPort() != other.getDestinationPort()) 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 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 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 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 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.rbac.v3alpha.Permission parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.
   * 
* * Protobuf type {@code envoy.config.rbac.v3alpha.Permission} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.rbac.v3alpha.Permission) io.envoyproxy.envoy.config.rbac.v3alpha.PermissionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.rbac.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.rbac.v3alpha.Permission.class, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder.class); } // Construct using io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.RbacProto.internal_static_envoy_config_rbac_v3alpha_Permission_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Permission getDefaultInstanceForType() { return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Permission build() { io.envoyproxy.envoy.config.rbac.v3alpha.Permission result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.rbac.v3alpha.Permission buildPartial() { io.envoyproxy.envoy.config.rbac.v3alpha.Permission result = new io.envoyproxy.envoy.config.rbac.v3alpha.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_ == 5) { if (destinationIpBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = destinationIpBuilder_.build(); } } if (ruleCase_ == 6) { result.rule_ = rule_; } 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(); } } 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.v3alpha.Permission) { return mergeFrom((io.envoyproxy.envoy.config.rbac.v3alpha.Permission)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.rbac.v3alpha.Permission other) { if (other == io.envoyproxy.envoy.config.rbac.v3alpha.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 DESTINATION_IP: { mergeDestinationIp(other.getDestinationIp()); break; } case DESTINATION_PORT: { setDestinationPort(other.getDestinationPort()); break; } case METADATA: { mergeMetadata(other.getMetadata()); break; } case NOT_RULE: { mergeNotRule(other.getNotRule()); break; } case REQUESTED_SERVER_NAME: { mergeRequestedServerName(other.getRequestedServerName()); 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.v3alpha.Permission parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder> andRulesBuilder_; /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.Permission.Set and_rules = 1; */ public boolean hasAndRules() { return ruleCase_ == 1; } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.Permission.Set and_rules = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set getAndRules() { if (andRulesBuilder_ == null) { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } else { if (ruleCase_ == 1) { return andRulesBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.Permission.Set and_rules = 1; */ public Builder setAndRules(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set and_rules = 1; */ public Builder setAndRules( io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set and_rules = 1; */ public Builder mergeAndRules(io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set value) { if (andRulesBuilder_ == null) { if (ruleCase_ == 1 && rule_ != io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.newBuilder((io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 1) { andRulesBuilder_.mergeFrom(value); } andRulesBuilder_.setMessage(value); } ruleCase_ = 1; return this; } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set and_rules = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder getAndRulesBuilder() { return getAndRulesFieldBuilder().getBuilder(); } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.Permission.Set and_rules = 1; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder getAndRulesOrBuilder() { if ((ruleCase_ == 1) && (andRulesBuilder_ != null)) { return andRulesBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } } /** *
     * A set of rules that all must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.Permission.Set and_rules = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder> getAndRulesFieldBuilder() { if (andRulesBuilder_ == null) { if (!(ruleCase_ == 1)) { rule_ = io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } andRulesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 1; onChanged();; return andRulesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder> orRulesBuilder_; /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.Permission.Set or_rules = 2; */ 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.v3alpha.Permission.Set or_rules = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set getOrRules() { if (orRulesBuilder_ == null) { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } else { if (ruleCase_ == 2) { return orRulesBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.Permission.Set or_rules = 2; */ public Builder setOrRules(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set or_rules = 2; */ public Builder setOrRules( io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set or_rules = 2; */ public Builder mergeOrRules(io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set value) { if (orRulesBuilder_ == null) { if (ruleCase_ == 2 && rule_ != io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.newBuilder((io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 2) { orRulesBuilder_.mergeFrom(value); } 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.v3alpha.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.v3alpha.Permission.Set or_rules = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission.Set or_rules = 2; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder getOrRulesOrBuilder() { if ((ruleCase_ == 2) && (orRulesBuilder_ != null)) { return orRulesBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } } /** *
     * A set of rules where at least one must match in order to define the action.
     * 
* * .envoy.config.rbac.v3alpha.Permission.Set or_rules = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder> getOrRulesFieldBuilder() { if (orRulesBuilder_ == null) { if (!(ruleCase_ == 2)) { rule_ = io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.getDefaultInstance(); } orRulesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Set.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.SetOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3alpha.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) = { ... } */ 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) = { ... } */ 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) = { ... } */ public Builder clearAny() { if (ruleCase_ == 3) { ruleCase_ = 0; rule_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder> headerBuilder_; /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ 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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher getHeader() { if (headerBuilder_ == null) { if (ruleCase_ == 4) { return (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_; } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } else { if (ruleCase_ == 4) { return headerBuilder_.getMessage(); } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ public Builder setHeader(io.envoyproxy.envoy.api.v3alpha.route.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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ public Builder setHeader( io.envoyproxy.envoy.api.v3alpha.route.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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ public Builder mergeHeader(io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher value) { if (headerBuilder_ == null) { if (ruleCase_ == 4 && rule_ != io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.newBuilder((io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 4) { headerBuilder_.mergeFrom(value); } 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.
     * 
* * .envoy.api.v3alpha.route.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.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder getHeaderBuilder() { return getHeaderFieldBuilder().getBuilder(); } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ public io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder getHeaderOrBuilder() { if ((ruleCase_ == 4) && (headerBuilder_ != null)) { return headerBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 4) { return (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_; } return io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } } /** *
     * A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
     * available for HTTP request.
     * 
* * .envoy.api.v3alpha.route.HeaderMatcher header = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { if (!(ruleCase_ == 4)) { rule_ = io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.getDefaultInstance(); } headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher.Builder, io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcherOrBuilder>( (io.envoyproxy.envoy.api.v3alpha.route.HeaderMatcher) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 4; onChanged();; return headerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.CidrRange, io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder, io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder> destinationIpBuilder_; /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange destination_ip = 5; */ public boolean hasDestinationIp() { return ruleCase_ == 5; } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange destination_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRange getDestinationIp() { if (destinationIpBuilder_ == null) { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) rule_; } return io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } else { if (ruleCase_ == 5) { return destinationIpBuilder_.getMessage(); } return io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange destination_ip = 5; */ public Builder setDestinationIp(io.envoyproxy.envoy.api.v3alpha.core.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.api.v3alpha.core.CidrRange destination_ip = 5; */ public Builder setDestinationIp( io.envoyproxy.envoy.api.v3alpha.core.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.api.v3alpha.core.CidrRange destination_ip = 5; */ public Builder mergeDestinationIp(io.envoyproxy.envoy.api.v3alpha.core.CidrRange value) { if (destinationIpBuilder_ == null) { if (ruleCase_ == 5 && rule_ != io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.api.v3alpha.core.CidrRange.newBuilder((io.envoyproxy.envoy.api.v3alpha.core.CidrRange) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 5) { destinationIpBuilder_.mergeFrom(value); } destinationIpBuilder_.setMessage(value); } ruleCase_ = 5; return this; } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.api.v3alpha.core.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.api.v3alpha.core.CidrRange destination_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder getDestinationIpBuilder() { return getDestinationIpFieldBuilder().getBuilder(); } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange destination_ip = 5; */ public io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder getDestinationIpOrBuilder() { if ((ruleCase_ == 5) && (destinationIpBuilder_ != null)) { return destinationIpBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) rule_; } return io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } } /** *
     * A CIDR block that describes the destination IP.
     * 
* * .envoy.api.v3alpha.core.CidrRange destination_ip = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.CidrRange, io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder, io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder> getDestinationIpFieldBuilder() { if (destinationIpBuilder_ == null) { if (!(ruleCase_ == 5)) { rule_ = io.envoyproxy.envoy.api.v3alpha.core.CidrRange.getDefaultInstance(); } destinationIpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.CidrRange, io.envoyproxy.envoy.api.v3alpha.core.CidrRange.Builder, io.envoyproxy.envoy.api.v3alpha.core.CidrRangeOrBuilder>( (io.envoyproxy.envoy.api.v3alpha.core.CidrRange) 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) = { ... } */ 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) = { ... } */ 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) = { ... } */ public Builder clearDestinationPort() { if (ruleCase_ == 6) { ruleCase_ = 0; rule_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.MetadataMatcher, io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder> metadataBuilder_; /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public boolean hasMetadata() { return ruleCase_ == 7; } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcher getMetadata() { if (metadataBuilder_ == null) { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } else { if (ruleCase_ == 7) { return metadataBuilder_.getMessage(); } return io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public Builder setMetadata(io.envoyproxy.envoy.type.matcher.MetadataMatcher value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } ruleCase_ = 7; return this; } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public Builder setMetadata( io.envoyproxy.envoy.type.matcher.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.MetadataMatcher metadata = 7; */ public Builder mergeMetadata(io.envoyproxy.envoy.type.matcher.MetadataMatcher value) { if (metadataBuilder_ == null) { if (ruleCase_ == 7 && rule_ != io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.type.matcher.MetadataMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 7) { metadataBuilder_.mergeFrom(value); } metadataBuilder_.setMessage(value); } ruleCase_ = 7; return this; } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.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.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ public io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder getMetadataOrBuilder() { if ((ruleCase_ == 7) && (metadataBuilder_ != null)) { return metadataBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } } /** *
     * Metadata that describes additional information about the action.
     * 
* * .envoy.type.matcher.MetadataMatcher metadata = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.MetadataMatcher, io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { if (!(ruleCase_ == 7)) { rule_ = io.envoyproxy.envoy.type.matcher.MetadataMatcher.getDefaultInstance(); } metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.MetadataMatcher, io.envoyproxy.envoy.type.matcher.MetadataMatcher.Builder, io.envoyproxy.envoy.type.matcher.MetadataMatcherOrBuilder>( (io.envoyproxy.envoy.type.matcher.MetadataMatcher) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 7; onChanged();; return metadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission not_rule = 8; */ 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.v3alpha.Permission not_rule = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.Permission getNotRule() { if (notRuleBuilder_ == null) { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.Permission.getDefaultInstance(); } else { if (ruleCase_ == 8) { return notRuleBuilder_.getMessage(); } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission not_rule = 8; */ public Builder setNotRule(io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission not_rule = 8; */ public Builder setNotRule( io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission not_rule = 8; */ public Builder mergeNotRule(io.envoyproxy.envoy.config.rbac.v3alpha.Permission value) { if (notRuleBuilder_ == null) { if (ruleCase_ == 8 && rule_ != io.envoyproxy.envoy.config.rbac.v3alpha.Permission.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.rbac.v3alpha.Permission.newBuilder((io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 8) { notRuleBuilder_.mergeFrom(value); } 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.v3alpha.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.v3alpha.Permission not_rule = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission not_rule = 8; */ public io.envoyproxy.envoy.config.rbac.v3alpha.PermissionOrBuilder getNotRuleOrBuilder() { if ((ruleCase_ == 8) && (notRuleBuilder_ != null)) { return notRuleBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_; } return io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission not_rule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.PermissionOrBuilder> getNotRuleFieldBuilder() { if (notRuleBuilder_ == null) { if (!(ruleCase_ == 8)) { rule_ = io.envoyproxy.envoy.config.rbac.v3alpha.Permission.getDefaultInstance(); } notRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.rbac.v3alpha.Permission, io.envoyproxy.envoy.config.rbac.v3alpha.Permission.Builder, io.envoyproxy.envoy.config.rbac.v3alpha.PermissionOrBuilder>( (io.envoyproxy.envoy.config.rbac.v3alpha.Permission) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 8; onChanged();; return notRuleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.StringMatcher, io.envoyproxy.envoy.type.matcher.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ 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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ public io.envoyproxy.envoy.type.matcher.StringMatcher getRequestedServerName() { if (requestedServerNameBuilder_ == null) { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.type.matcher.StringMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.StringMatcher.getDefaultInstance(); } else { if (ruleCase_ == 9) { return requestedServerNameBuilder_.getMessage(); } return io.envoyproxy.envoy.type.matcher.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ public Builder setRequestedServerName(io.envoyproxy.envoy.type.matcher.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ public Builder setRequestedServerName( io.envoyproxy.envoy.type.matcher.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ public Builder mergeRequestedServerName(io.envoyproxy.envoy.type.matcher.StringMatcher value) { if (requestedServerNameBuilder_ == null) { if (ruleCase_ == 9 && rule_ != io.envoyproxy.envoy.type.matcher.StringMatcher.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.type.matcher.StringMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.StringMatcher) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 9) { requestedServerNameBuilder_.mergeFrom(value); } 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_api_field_Listener.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.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ public io.envoyproxy.envoy.type.matcher.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ public io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder getRequestedServerNameOrBuilder() { if ((ruleCase_ == 9) && (requestedServerNameBuilder_ != null)) { return requestedServerNameBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.type.matcher.StringMatcher) rule_; } return io.envoyproxy.envoy.type.matcher.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_api_field_Listener.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.StringMatcher requested_server_name = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.StringMatcher, io.envoyproxy.envoy.type.matcher.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder> getRequestedServerNameFieldBuilder() { if (requestedServerNameBuilder_ == null) { if (!(ruleCase_ == 9)) { rule_ = io.envoyproxy.envoy.type.matcher.StringMatcher.getDefaultInstance(); } requestedServerNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.StringMatcher, io.envoyproxy.envoy.type.matcher.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder>( (io.envoyproxy.envoy.type.matcher.StringMatcher) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 9; onChanged();; return requestedServerNameBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.config.rbac.v3alpha.Permission) } // @@protoc_insertion_point(class_scope:envoy.config.rbac.v3alpha.Permission) private static final io.envoyproxy.envoy.config.rbac.v3alpha.Permission DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.rbac.v3alpha.Permission(); } public static io.envoyproxy.envoy.config.rbac.v3alpha.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.v3alpha.Permission getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy