Class Principal.Builder

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

    public static final class Principal.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
    implements PrincipalOrBuilder
     This is a GlobalGetable.
     
    Protobuf type littlehorse.Principal
    • Method Detail

      • getDescriptor

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

        public 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.GeneratedMessageV3.Builder<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.GeneratedMessageV3.Builder<Principal.Builder>
      • getDefaultInstanceForType

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

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

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

        public Principal.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
      • setField

        public Principal.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
      • clearField

        public Principal.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
      • clearOneof

        public Principal.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
      • setRepeatedField

        public Principal.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
      • addRepeatedField

        public Principal.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
      • mergeFrom

        public 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<Principal.Builder>
      • isInitialized

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

        public 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<Principal.Builder>
        Throws:
        java.io.IOException
      • getId

        public java.lang.String getId()
         Principals are agnostic of the Authentication protocol that you use. In OAuth,
         the id is retrieved by looking at the claims on the request. In mTLS, the
         id is retrived by looking at the Subject Name of the client certificate.
         
        string id = 1;
        Specified by:
        getId in interface PrincipalOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Principals are agnostic of the Authentication protocol that you use. In OAuth,
         the id is retrieved by looking at the claims on the request. In mTLS, the
         id is retrived by looking at the Subject Name of the client certificate.
         
        string id = 1;
        Specified by:
        getIdBytes in interface PrincipalOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Principal.Builder setId​(java.lang.String value)
         Principals are agnostic of the Authentication protocol that you use. In OAuth,
         the id is retrieved by looking at the claims on the request. In mTLS, the
         id is retrived by looking at the Subject Name of the client certificate.
         
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Principal.Builder clearId()
         Principals are agnostic of the Authentication protocol that you use. In OAuth,
         the id is retrieved by looking at the claims on the request. In mTLS, the
         id is retrived by looking at the Subject Name of the client certificate.
         
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public Principal.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Principals are agnostic of the Authentication protocol that you use. In OAuth,
         the id is retrieved by looking at the claims on the request. In mTLS, the
         id is retrived by looking at the Subject Name of the client certificate.
         
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • hasCreatedAt

        public boolean hasCreatedAt()
        .google.protobuf.Timestamp created_at = 2;
        Specified by:
        hasCreatedAt in interface PrincipalOrBuilder
        Returns:
        Whether the createdAt field is set.
      • getCreatedAt

        public com.google.protobuf.Timestamp getCreatedAt()
        .google.protobuf.Timestamp created_at = 2;
        Specified by:
        getCreatedAt in interface PrincipalOrBuilder
        Returns:
        The createdAt.
      • setCreatedAt

        public Principal.Builder setCreatedAt​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp created_at = 2;
      • setCreatedAt

        public Principal.Builder setCreatedAt​(com.google.protobuf.Timestamp.Builder builderForValue)
        .google.protobuf.Timestamp created_at = 2;
      • mergeCreatedAt

        public Principal.Builder mergeCreatedAt​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp created_at = 2;
      • clearCreatedAt

        public Principal.Builder clearCreatedAt()
        .google.protobuf.Timestamp created_at = 2;
      • getCreatedAtBuilder

        public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder()
        .google.protobuf.Timestamp created_at = 2;
      • getCreatedAtOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder()
        .google.protobuf.Timestamp created_at = 2;
        Specified by:
        getCreatedAtOrBuilder in interface PrincipalOrBuilder
      • getPerTenantAclsCount

        public int getPerTenantAclsCount()
        Description copied from interface: PrincipalOrBuilder
         Maps a Tenant ID to a list of ACL's that the Principal has permission to
         execute *within that Tenant*
         
        map<string, .littlehorse.ServerACLs> per_tenant_acls = 3;
        Specified by:
        getPerTenantAclsCount in interface PrincipalOrBuilder
      • containsPerTenantAcls

        public boolean containsPerTenantAcls​(java.lang.String key)
         Maps a Tenant ID to a list of ACL's that the Principal has permission to
         execute *within that Tenant*
         
        map<string, .littlehorse.ServerACLs> per_tenant_acls = 3;
        Specified by:
        containsPerTenantAcls in interface PrincipalOrBuilder
      • getPerTenantAclsMap

        public java.util.Map<java.lang.String,​ServerACLs> getPerTenantAclsMap()
         Maps a Tenant ID to a list of ACL's that the Principal has permission to
         execute *within that Tenant*
         
        map<string, .littlehorse.ServerACLs> per_tenant_acls = 3;
        Specified by:
        getPerTenantAclsMap in interface PrincipalOrBuilder
      • getPerTenantAclsOrDefault

        public ServerACLs getPerTenantAclsOrDefault​(java.lang.String key,
                                                    ServerACLs defaultValue)
         Maps a Tenant ID to a list of ACL's that the Principal has permission to
         execute *within that Tenant*
         
        map<string, .littlehorse.ServerACLs> per_tenant_acls = 3;
        Specified by:
        getPerTenantAclsOrDefault in interface PrincipalOrBuilder
      • getPerTenantAclsOrThrow

        public ServerACLs getPerTenantAclsOrThrow​(java.lang.String key)
         Maps a Tenant ID to a list of ACL's that the Principal has permission to
         execute *within that Tenant*
         
        map<string, .littlehorse.ServerACLs> per_tenant_acls = 3;
        Specified by:
        getPerTenantAclsOrThrow in interface PrincipalOrBuilder
      • removePerTenantAcls

        public Principal.Builder removePerTenantAcls​(java.lang.String key)
         Maps a Tenant ID to a list of ACL's that the Principal has permission to
         execute *within that Tenant*
         
        map<string, .littlehorse.ServerACLs> per_tenant_acls = 3;
      • getMutablePerTenantAcls

        @Deprecated
        public java.util.Map<java.lang.String,​ServerACLs> getMutablePerTenantAcls()
        Deprecated.
        Use alternate mutation accessors instead.
      • putPerTenantAcls

        public Principal.Builder putPerTenantAcls​(java.lang.String key,
                                                  ServerACLs value)
         Maps a Tenant ID to a list of ACL's that the Principal has permission to
         execute *within that Tenant*
         
        map<string, .littlehorse.ServerACLs> per_tenant_acls = 3;
      • putAllPerTenantAcls

        public Principal.Builder putAllPerTenantAcls​(java.util.Map<java.lang.String,​ServerACLs> values)
         Maps a Tenant ID to a list of ACL's that the Principal has permission to
         execute *within that Tenant*
         
        map<string, .littlehorse.ServerACLs> per_tenant_acls = 3;
      • hasGlobalAcls

        public boolean hasGlobalAcls()
         Sets permissions that this Principal has *for any Tenant* in the LH Cluster.
         
        .littlehorse.ServerACLs global_acls = 4;
        Specified by:
        hasGlobalAcls in interface PrincipalOrBuilder
        Returns:
        Whether the globalAcls field is set.
      • getGlobalAcls

        public ServerACLs getGlobalAcls()
         Sets permissions that this Principal has *for any Tenant* in the LH Cluster.
         
        .littlehorse.ServerACLs global_acls = 4;
        Specified by:
        getGlobalAcls in interface PrincipalOrBuilder
        Returns:
        The globalAcls.
      • setGlobalAcls

        public Principal.Builder setGlobalAcls​(ServerACLs value)
         Sets permissions that this Principal has *for any Tenant* in the LH Cluster.
         
        .littlehorse.ServerACLs global_acls = 4;
      • setGlobalAcls

        public Principal.Builder setGlobalAcls​(ServerACLs.Builder builderForValue)
         Sets permissions that this Principal has *for any Tenant* in the LH Cluster.
         
        .littlehorse.ServerACLs global_acls = 4;
      • mergeGlobalAcls

        public Principal.Builder mergeGlobalAcls​(ServerACLs value)
         Sets permissions that this Principal has *for any Tenant* in the LH Cluster.
         
        .littlehorse.ServerACLs global_acls = 4;
      • clearGlobalAcls

        public Principal.Builder clearGlobalAcls()
         Sets permissions that this Principal has *for any Tenant* in the LH Cluster.
         
        .littlehorse.ServerACLs global_acls = 4;
      • getGlobalAclsBuilder

        public ServerACLs.Builder getGlobalAclsBuilder()
         Sets permissions that this Principal has *for any Tenant* in the LH Cluster.
         
        .littlehorse.ServerACLs global_acls = 4;
      • setUnknownFields

        public final Principal.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
      • mergeUnknownFields

        public final Principal.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>