Package io.littlehorse.common.proto
Class Principal.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
- io.littlehorse.common.proto.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 typelittlehorse.Principal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Principal.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Principalbuild()PrincipalbuildPartial()Principal.Builderclear()Principal.BuilderclearCreatedAt().google.protobuf.Timestamp created_at = 2;Principal.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Principal.BuilderclearGlobalAcls()Sets permissions that this Principal has *for any Tenant* in the LH Cluster.Principal.BuilderclearId()Principals are agnostic of the Authentication protocol that you use.Principal.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Principal.BuilderclearPerTenantAcls()Principal.Builderclone()booleancontainsPerTenantAcls(java.lang.String key)Maps a Tenant ID to a list of ACL's that the Principal has permission to execute *within that Tenant*com.google.protobuf.TimestampgetCreatedAt().google.protobuf.Timestamp created_at = 2;com.google.protobuf.Timestamp.BuildergetCreatedAtBuilder().google.protobuf.Timestamp created_at = 2;com.google.protobuf.TimestampOrBuildergetCreatedAtOrBuilder().google.protobuf.Timestamp created_at = 2;PrincipalgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ServerACLsgetGlobalAcls()Sets permissions that this Principal has *for any Tenant* in the LH Cluster.ServerACLs.BuildergetGlobalAclsBuilder()Sets permissions that this Principal has *for any Tenant* in the LH Cluster.ServerACLsOrBuildergetGlobalAclsOrBuilder()Sets permissions that this Principal has *for any Tenant* in the LH Cluster.java.lang.StringgetId()Principals are agnostic of the Authentication protocol that you use.com.google.protobuf.ByteStringgetIdBytes()Principals are agnostic of the Authentication protocol that you use.java.util.Map<java.lang.String,ServerACLs>getMutablePerTenantAcls()Deprecated.java.util.Map<java.lang.String,ServerACLs>getPerTenantAcls()Deprecated.intgetPerTenantAclsCount()Maps a Tenant ID to a list of ACL's that the Principal has permission to execute *within that Tenant*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*ServerACLsgetPerTenantAclsOrDefault(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*ServerACLsgetPerTenantAclsOrThrow(java.lang.String key)Maps a Tenant ID to a list of ACL's that the Principal has permission to execute *within that Tenant*booleanhasCreatedAt().google.protobuf.Timestamp created_at = 2;booleanhasGlobalAcls()Sets permissions that this Principal has *for any Tenant* in the LH Cluster.booleanisInitialized()Principal.BuildermergeCreatedAt(com.google.protobuf.Timestamp value).google.protobuf.Timestamp created_at = 2;Principal.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Principal.BuildermergeFrom(com.google.protobuf.Message other)Principal.BuildermergeFrom(Principal other)Principal.BuildermergeGlobalAcls(ServerACLs value)Sets permissions that this Principal has *for any Tenant* in the LH Cluster.Principal.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Principal.BuilderputAllPerTenantAcls(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*Principal.BuilderputPerTenantAcls(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*Principal.BuilderremovePerTenantAcls(java.lang.String key)Maps a Tenant ID to a list of ACL's that the Principal has permission to execute *within that Tenant*Principal.BuildersetCreatedAt(com.google.protobuf.Timestamp value).google.protobuf.Timestamp created_at = 2;Principal.BuildersetCreatedAt(com.google.protobuf.Timestamp.Builder builderForValue).google.protobuf.Timestamp created_at = 2;Principal.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Principal.BuildersetGlobalAcls(ServerACLs value)Sets permissions that this Principal has *for any Tenant* in the LH Cluster.Principal.BuildersetGlobalAcls(ServerACLs.Builder builderForValue)Sets permissions that this Principal has *for any Tenant* in the LH Cluster.Principal.BuildersetId(java.lang.String value)Principals are agnostic of the Authentication protocol that you use.Principal.BuildersetIdBytes(com.google.protobuf.ByteString value)Principals are agnostic of the Authentication protocol that you use.Principal.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Principal.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
clear
public Principal.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
getDefaultInstanceForType
public Principal getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Principal build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Principal buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Principal.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
setField
public Principal.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
clearField
public Principal.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
clearOneof
public Principal.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
addRepeatedField
public Principal.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
mergeFrom
public Principal.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Principal.Builder>
-
mergeFrom
public Principal.Builder mergeFrom(Principal other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getIdin interfacePrincipalOrBuilder- 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:
getIdBytesin interfacePrincipalOrBuilder- 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:
hasCreatedAtin interfacePrincipalOrBuilder- Returns:
- Whether the createdAt field is set.
-
getCreatedAt
public com.google.protobuf.Timestamp getCreatedAt()
.google.protobuf.Timestamp created_at = 2;- Specified by:
getCreatedAtin interfacePrincipalOrBuilder- 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:
getCreatedAtOrBuilderin interfacePrincipalOrBuilder
-
getPerTenantAclsCount
public int getPerTenantAclsCount()
Description copied from interface:PrincipalOrBuilderMaps 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:
getPerTenantAclsCountin interfacePrincipalOrBuilder
-
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:
containsPerTenantAclsin interfacePrincipalOrBuilder
-
getPerTenantAcls
@Deprecated public java.util.Map<java.lang.String,ServerACLs> getPerTenantAcls()
Deprecated.UsegetPerTenantAclsMap()instead.- Specified by:
getPerTenantAclsin interfacePrincipalOrBuilder
-
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:
getPerTenantAclsMapin interfacePrincipalOrBuilder
-
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:
getPerTenantAclsOrDefaultin interfacePrincipalOrBuilder
-
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:
getPerTenantAclsOrThrowin interfacePrincipalOrBuilder
-
clearPerTenantAcls
public Principal.Builder clearPerTenantAcls()
-
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:
hasGlobalAclsin interfacePrincipalOrBuilder- 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:
getGlobalAclsin interfacePrincipalOrBuilder- 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;
-
getGlobalAclsOrBuilder
public ServerACLsOrBuilder getGlobalAclsOrBuilder()
Sets permissions that this Principal has *for any Tenant* in the LH Cluster.
.littlehorse.ServerACLs global_acls = 4;- Specified by:
getGlobalAclsOrBuilderin interfacePrincipalOrBuilder
-
setUnknownFields
public final Principal.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
mergeUnknownFields
public final Principal.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>
-
-