public static final class MSPPrincipal.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder> implements MSPPrincipalOrBuilder
MSPPrincipal aims to represent an MSP-centric set of identities. In particular, this structure allows for definition of - a group of identities that are member of the same MSP - a group of identities that are member of the same organization unit in the same MSP - a group of identities that are administering a specific MSP - a specific identity Expressing these groups is done given two fields of the fields below - Classification, that defines the type of classification of identities in an MSP this principal would be defined on; Classification can take three values: (i) ByMSPRole: that represents a classification of identities within MSP based on one of the two pre-defined MSP rules, "member" and "admin" (ii) ByOrganizationUnit: that represents a classification of identities within MSP based on the organization unit an identity belongs to (iii)ByIdentity that denotes that MSPPrincipal is mapped to a single identity/certificate; this would mean that the Principal bytes messageProtobuf type
common.MSPPrincipal
Modifier and Type | Method and Description |
---|---|
MSPPrincipal.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MSPPrincipal |
build() |
MSPPrincipal |
buildPartial() |
MSPPrincipal.Builder |
clear() |
MSPPrincipal.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MSPPrincipal.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MSPPrincipal.Builder |
clearPrincipal()
Principal completes the policy principal definition.
|
MSPPrincipal.Builder |
clearPrincipalClassification()
Classification describes the way that one should process
Principal.
|
MSPPrincipal.Builder |
clone() |
MSPPrincipal |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getPrincipal()
Principal completes the policy principal definition.
|
MSPPrincipal.Classification |
getPrincipalClassification()
Classification describes the way that one should process
Principal.
|
int |
getPrincipalClassificationValue()
Classification describes the way that one should process
Principal.
|
boolean |
isInitialized() |
MSPPrincipal.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MSPPrincipal.Builder |
mergeFrom(com.google.protobuf.Message other) |
MSPPrincipal.Builder |
mergeFrom(MSPPrincipal other) |
MSPPrincipal.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MSPPrincipal.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MSPPrincipal.Builder |
setPrincipal(com.google.protobuf.ByteString value)
Principal completes the policy principal definition.
|
MSPPrincipal.Builder |
setPrincipalClassification(MSPPrincipal.Classification value)
Classification describes the way that one should process
Principal.
|
MSPPrincipal.Builder |
setPrincipalClassificationValue(int value)
Classification describes the way that one should process
Principal.
|
MSPPrincipal.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MSPPrincipal.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public MSPPrincipal.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public MSPPrincipal getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MSPPrincipal build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MSPPrincipal buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MSPPrincipal.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public MSPPrincipal.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public MSPPrincipal.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public MSPPrincipal.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public MSPPrincipal.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public MSPPrincipal.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public MSPPrincipal.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MSPPrincipal.Builder>
public MSPPrincipal.Builder mergeFrom(MSPPrincipal other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public MSPPrincipal.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MSPPrincipal.Builder>
IOException
public int getPrincipalClassificationValue()
Classification describes the way that one should process Principal. An Classification value of "ByOrganizationUnit" reflects that "Principal" contains the name of an organization this MSP handles. A Classification value "ByIdentity" means that "Principal" contains a specific identity. Default value denotes that Principal contains one of the groups by default supported by all MSPs ("admin" or "member").
.common.MSPPrincipal.Classification principal_classification = 1 [json_name = "principalClassification"];
getPrincipalClassificationValue
in interface MSPPrincipalOrBuilder
public MSPPrincipal.Builder setPrincipalClassificationValue(int value)
Classification describes the way that one should process Principal. An Classification value of "ByOrganizationUnit" reflects that "Principal" contains the name of an organization this MSP handles. A Classification value "ByIdentity" means that "Principal" contains a specific identity. Default value denotes that Principal contains one of the groups by default supported by all MSPs ("admin" or "member").
.common.MSPPrincipal.Classification principal_classification = 1 [json_name = "principalClassification"];
value
- The enum numeric value on the wire for principalClassification to set.public MSPPrincipal.Classification getPrincipalClassification()
Classification describes the way that one should process Principal. An Classification value of "ByOrganizationUnit" reflects that "Principal" contains the name of an organization this MSP handles. A Classification value "ByIdentity" means that "Principal" contains a specific identity. Default value denotes that Principal contains one of the groups by default supported by all MSPs ("admin" or "member").
.common.MSPPrincipal.Classification principal_classification = 1 [json_name = "principalClassification"];
getPrincipalClassification
in interface MSPPrincipalOrBuilder
public MSPPrincipal.Builder setPrincipalClassification(MSPPrincipal.Classification value)
Classification describes the way that one should process Principal. An Classification value of "ByOrganizationUnit" reflects that "Principal" contains the name of an organization this MSP handles. A Classification value "ByIdentity" means that "Principal" contains a specific identity. Default value denotes that Principal contains one of the groups by default supported by all MSPs ("admin" or "member").
.common.MSPPrincipal.Classification principal_classification = 1 [json_name = "principalClassification"];
value
- The principalClassification to set.public MSPPrincipal.Builder clearPrincipalClassification()
Classification describes the way that one should process Principal. An Classification value of "ByOrganizationUnit" reflects that "Principal" contains the name of an organization this MSP handles. A Classification value "ByIdentity" means that "Principal" contains a specific identity. Default value denotes that Principal contains one of the groups by default supported by all MSPs ("admin" or "member").
.common.MSPPrincipal.Classification principal_classification = 1 [json_name = "principalClassification"];
public com.google.protobuf.ByteString getPrincipal()
Principal completes the policy principal definition. For the default principal types, Principal can be either "Admin" or "Member". For the ByOrganizationUnit/ByIdentity values of Classification, PolicyPrincipal acquires its value from an organization unit or identity, respectively. For the Combined Classification type, the Principal is a marshalled CombinedPrincipal.
bytes principal = 2 [json_name = "principal"];
getPrincipal
in interface MSPPrincipalOrBuilder
public MSPPrincipal.Builder setPrincipal(com.google.protobuf.ByteString value)
Principal completes the policy principal definition. For the default principal types, Principal can be either "Admin" or "Member". For the ByOrganizationUnit/ByIdentity values of Classification, PolicyPrincipal acquires its value from an organization unit or identity, respectively. For the Combined Classification type, the Principal is a marshalled CombinedPrincipal.
bytes principal = 2 [json_name = "principal"];
value
- The principal to set.public MSPPrincipal.Builder clearPrincipal()
Principal completes the policy principal definition. For the default principal types, Principal can be either "Admin" or "Member". For the ByOrganizationUnit/ByIdentity values of Classification, PolicyPrincipal acquires its value from an organization unit or identity, respectively. For the Combined Classification type, the Principal is a marshalled CombinedPrincipal.
bytes principal = 2 [json_name = "principal"];
public final MSPPrincipal.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
public final MSPPrincipal.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MSPPrincipal.Builder>
Copyright © 2022. All rights reserved.