Class Engine.Principal.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Engine.PrincipalOrBuilder, java.lang.Cloneable
    Enclosing class:
    Engine.Principal

    public static final class Engine.Principal.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Engine.Principal.Builder>
    implements Engine.PrincipalOrBuilder
    Protobuf type cerbos.engine.v1.Principal
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Engine.Principal.Builder addAllRoles​(java.lang.Iterable<java.lang.String> values)
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder addRoles​(java.lang.String value)
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder addRolesBytes​(com.google.protobuf.ByteString value)
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal build()  
      Engine.Principal buildPartial()  
      Engine.Principal.Builder clear()  
      Engine.Principal.Builder clearAttr()  
      Engine.Principal.Builder clearId()
      string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder clearPolicyVersion()
      string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder clearRoles()
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder clearScope()
      string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      boolean containsAttr​(java.lang.String key)
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      java.util.Map<java.lang.String,​com.google.protobuf.Value> getAttr()
      Deprecated.
      int getAttrCount()
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      java.util.Map<java.lang.String,​com.google.protobuf.Value> getAttrMap()
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      com.google.protobuf.Value getAttrOrDefault​(java.lang.String key, com.google.protobuf.Value defaultValue)
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      com.google.protobuf.Value getAttrOrThrow​(java.lang.String key)
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      java.lang.String getId()
      string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      com.google.protobuf.ByteString getIdBytes()
      string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      java.util.Map<java.lang.String,​com.google.protobuf.Value> getMutableAttr()
      Deprecated.
      java.lang.String getPolicyVersion()
      string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      com.google.protobuf.ByteString getPolicyVersionBytes()
      string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      java.lang.String getRoles​(int index)
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      com.google.protobuf.ByteString getRolesBytes​(int index)
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      int getRolesCount()
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      com.google.protobuf.ProtocolStringList getRolesList()
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      java.lang.String getScope()
      string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      com.google.protobuf.ByteString getScopeBytes()
      string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)  
      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)  
      boolean isInitialized()  
      Engine.Principal.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Engine.Principal.Builder mergeFrom​(com.google.protobuf.Message other)  
      Engine.Principal.Builder mergeFrom​(Engine.Principal other)  
      Engine.Principal.Builder putAllAttr​(java.util.Map<java.lang.String,​com.google.protobuf.Value> values)
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder putAttr​(java.lang.String key, com.google.protobuf.Value value)
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      com.google.protobuf.Value.Builder putAttrBuilderIfAbsent​(java.lang.String key)
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder removeAttr​(java.lang.String key)
      map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder setId​(java.lang.String value)
      string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder setIdBytes​(com.google.protobuf.ByteString value)
      string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder setPolicyVersion​(java.lang.String value)
      string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder setPolicyVersionBytes​(com.google.protobuf.ByteString value)
      string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder setRoles​(int index, java.lang.String value)
      repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder setScope​(java.lang.String value)
      string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      Engine.Principal.Builder setScopeBytes​(com.google.protobuf.ByteString value)
      string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ...
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Engine.Principal.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Engine.Principal.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Engine.Principal.Builder>
      • clear

        public Engine.Principal.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<Engine.Principal.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Engine.Principal.Builder>
      • getDefaultInstanceForType

        public Engine.Principal getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Engine.Principal build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Engine.Principal buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public Engine.Principal.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Engine.Principal.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Engine.Principal.Builder>
      • mergeFrom

        public Engine.Principal.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Engine.Principal.Builder>
        Throws:
        java.io.IOException
      • getId

        public java.lang.String getId()
        string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getId in interface Engine.PrincipalOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
        string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getIdBytes in interface Engine.PrincipalOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Engine.Principal.Builder setId​(java.lang.String value)
        string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Engine.Principal.Builder clearId()
        string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Returns:
        This builder for chaining.
      • setIdBytes

        public Engine.Principal.Builder setIdBytes​(com.google.protobuf.ByteString value)
        string id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getPolicyVersion

        public java.lang.String getPolicyVersion()
        string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getPolicyVersion in interface Engine.PrincipalOrBuilder
        Returns:
        The policyVersion.
      • getPolicyVersionBytes

        public com.google.protobuf.ByteString getPolicyVersionBytes()
        string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getPolicyVersionBytes in interface Engine.PrincipalOrBuilder
        Returns:
        The bytes for policyVersion.
      • setPolicyVersion

        public Engine.Principal.Builder setPolicyVersion​(java.lang.String value)
        string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        value - The policyVersion to set.
        Returns:
        This builder for chaining.
      • clearPolicyVersion

        public Engine.Principal.Builder clearPolicyVersion()
        string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Returns:
        This builder for chaining.
      • setPolicyVersionBytes

        public Engine.Principal.Builder setPolicyVersionBytes​(com.google.protobuf.ByteString value)
        string policy_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        value - The bytes for policyVersion to set.
        Returns:
        This builder for chaining.
      • getRolesList

        public com.google.protobuf.ProtocolStringList getRolesList()
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getRolesList in interface Engine.PrincipalOrBuilder
        Returns:
        A list containing the roles.
      • getRolesCount

        public int getRolesCount()
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getRolesCount in interface Engine.PrincipalOrBuilder
        Returns:
        The count of roles.
      • getRoles

        public java.lang.String getRoles​(int index)
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getRoles in interface Engine.PrincipalOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The roles at the given index.
      • getRolesBytes

        public com.google.protobuf.ByteString getRolesBytes​(int index)
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getRolesBytes in interface Engine.PrincipalOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the roles at the given index.
      • setRoles

        public Engine.Principal.Builder setRoles​(int index,
                                                 java.lang.String value)
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The roles to set.
        Returns:
        This builder for chaining.
      • addRoles

        public Engine.Principal.Builder addRoles​(java.lang.String value)
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        value - The roles to add.
        Returns:
        This builder for chaining.
      • addAllRoles

        public Engine.Principal.Builder addAllRoles​(java.lang.Iterable<java.lang.String> values)
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        values - The roles to add.
        Returns:
        This builder for chaining.
      • clearRoles

        public Engine.Principal.Builder clearRoles()
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Returns:
        This builder for chaining.
      • addRolesBytes

        public Engine.Principal.Builder addRolesBytes​(com.google.protobuf.ByteString value)
        repeated string roles = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        value - The bytes of the roles to add.
        Returns:
        This builder for chaining.
      • containsAttr

        public boolean containsAttr​(java.lang.String key)
        map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        containsAttr in interface Engine.PrincipalOrBuilder
      • getAttrMap

        public java.util.Map<java.lang.String,​com.google.protobuf.Value> getAttrMap()
        map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getAttrMap in interface Engine.PrincipalOrBuilder
      • getAttrOrDefault

        public com.google.protobuf.Value getAttrOrDefault​(java.lang.String key,
                                                          com.google.protobuf.Value defaultValue)
        map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getAttrOrDefault in interface Engine.PrincipalOrBuilder
      • getAttrOrThrow

        public com.google.protobuf.Value getAttrOrThrow​(java.lang.String key)
        map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getAttrOrThrow in interface Engine.PrincipalOrBuilder
      • removeAttr

        public Engine.Principal.Builder removeAttr​(java.lang.String key)
        map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
      • getMutableAttr

        @Deprecated
        public java.util.Map<java.lang.String,​com.google.protobuf.Value> getMutableAttr()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAttr

        public Engine.Principal.Builder putAttr​(java.lang.String key,
                                                com.google.protobuf.Value value)
        map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
      • putAllAttr

        public Engine.Principal.Builder putAllAttr​(java.util.Map<java.lang.String,​com.google.protobuf.Value> values)
        map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
      • putAttrBuilderIfAbsent

        public com.google.protobuf.Value.Builder putAttrBuilderIfAbsent​(java.lang.String key)
        map<string, .google.protobuf.Value> attr = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
      • getScope

        public java.lang.String getScope()
        string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getScope in interface Engine.PrincipalOrBuilder
        Returns:
        The scope.
      • getScopeBytes

        public com.google.protobuf.ByteString getScopeBytes()
        string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Specified by:
        getScopeBytes in interface Engine.PrincipalOrBuilder
        Returns:
        The bytes for scope.
      • setScope

        public Engine.Principal.Builder setScope​(java.lang.String value)
        string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        value - The scope to set.
        Returns:
        This builder for chaining.
      • clearScope

        public Engine.Principal.Builder clearScope()
        string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Returns:
        This builder for chaining.
      • setScopeBytes

        public Engine.Principal.Builder setScopeBytes​(com.google.protobuf.ByteString value)
        string scope = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
        Parameters:
        value - The bytes for scope to set.
        Returns:
        This builder for chaining.