public static final class DarcOCSProto.Darc extends com.google.protobuf.GeneratedMessageV3 implements DarcOCSProto.DarcOrBuilder
Darc is the basic structure representing an access control. A Darc can evolve in the way that a new Darc points to the previous one and is signed by the owner(s) of the previous Darc.Protobuf type
Darc| Modifier and Type | Class and Description |
|---|---|
static class |
DarcOCSProto.Darc.Builder
Darc is the basic structure representing an access control.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
BASEID_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
OWNERS_FIELD_NUMBER |
static com.google.protobuf.Parser<DarcOCSProto.Darc> |
PARSER
Deprecated.
|
static int |
SIGNATURE_FIELD_NUMBER |
static int |
USERS_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getBaseid()
BaseID is the ID of the first darc of this Series
|
static DarcOCSProto.Darc |
getDefaultInstance() |
DarcOCSProto.Darc |
getDefaultInstanceForType() |
com.google.protobuf.ByteString |
getDescription()
Description is a free-form field that can hold any data as required by the user.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DarcOCSProto.Identity |
getOwners(int index)
Identities who are allowed to evolve this Darc.
|
int |
getOwnersCount()
Identities who are allowed to evolve this Darc.
|
List<DarcOCSProto.Identity> |
getOwnersList()
Identities who are allowed to evolve this Darc.
|
DarcOCSProto.IdentityOrBuilder |
getOwnersOrBuilder(int index)
Identities who are allowed to evolve this Darc.
|
List<? extends DarcOCSProto.IdentityOrBuilder> |
getOwnersOrBuilderList()
Identities who are allowed to evolve this Darc.
|
com.google.protobuf.Parser<DarcOCSProto.Darc> |
getParserForType() |
int |
getSerializedSize() |
DarcOCSProto.Signature |
getSignature()
Signature is calculated over the protobuf representation of [Owner, Users, Version, Description]
and needs to be created by an Owner from the previous valid Darc.
|
DarcOCSProto.SignatureOrBuilder |
getSignatureOrBuilder()
Signature is calculated over the protobuf representation of [Owner, Users, Version, Description]
and needs to be created by an Owner from the previous valid Darc.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
DarcOCSProto.Identity |
getUsers(int index)
Identities who can perform actions (write/read) with data on a skipchain.
|
int |
getUsersCount()
Identities who can perform actions (write/read) with data on a skipchain.
|
List<DarcOCSProto.Identity> |
getUsersList()
Identities who can perform actions (write/read) with data on a skipchain.
|
DarcOCSProto.IdentityOrBuilder |
getUsersOrBuilder(int index)
Identities who can perform actions (write/read) with data on a skipchain.
|
List<? extends DarcOCSProto.IdentityOrBuilder> |
getUsersOrBuilderList()
Identities who can perform actions (write/read) with data on a skipchain.
|
int |
getVersion()
Version should be monotonically increasing over the evolution of a Darc.
|
boolean |
hasBaseid()
BaseID is the ID of the first darc of this Series
|
boolean |
hasDescription()
Description is a free-form field that can hold any data as required by the user.
|
int |
hashCode() |
boolean |
hasSignature()
Signature is calculated over the protobuf representation of [Owner, Users, Version, Description]
and needs to be created by an Owner from the previous valid Darc.
|
boolean |
hasVersion()
Version should be monotonically increasing over the evolution of a Darc.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DarcOCSProto.Darc.Builder |
newBuilder() |
static DarcOCSProto.Darc.Builder |
newBuilder(DarcOCSProto.Darc prototype) |
DarcOCSProto.Darc.Builder |
newBuilderForType() |
protected DarcOCSProto.Darc.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static DarcOCSProto.Darc |
parseDelimitedFrom(InputStream input) |
static DarcOCSProto.Darc |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcOCSProto.Darc |
parseFrom(byte[] data) |
static DarcOCSProto.Darc |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcOCSProto.Darc |
parseFrom(ByteBuffer data) |
static DarcOCSProto.Darc |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcOCSProto.Darc |
parseFrom(com.google.protobuf.ByteString data) |
static DarcOCSProto.Darc |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcOCSProto.Darc |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DarcOCSProto.Darc |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcOCSProto.Darc |
parseFrom(InputStream input) |
static DarcOCSProto.Darc |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DarcOCSProto.Darc> |
parser() |
DarcOCSProto.Darc.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int OWNERS_FIELD_NUMBER
public static final int USERS_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int BASEID_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<DarcOCSProto.Darc> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<DarcOCSProto.Identity> getOwnersList()
Identities who are allowed to evolve this Darc.
repeated .Identity owners = 1;getOwnersList in interface DarcOCSProto.DarcOrBuilderpublic List<? extends DarcOCSProto.IdentityOrBuilder> getOwnersOrBuilderList()
Identities who are allowed to evolve this Darc.
repeated .Identity owners = 1;getOwnersOrBuilderList in interface DarcOCSProto.DarcOrBuilderpublic int getOwnersCount()
Identities who are allowed to evolve this Darc.
repeated .Identity owners = 1;getOwnersCount in interface DarcOCSProto.DarcOrBuilderpublic DarcOCSProto.Identity getOwners(int index)
Identities who are allowed to evolve this Darc.
repeated .Identity owners = 1;getOwners in interface DarcOCSProto.DarcOrBuilderpublic DarcOCSProto.IdentityOrBuilder getOwnersOrBuilder(int index)
Identities who are allowed to evolve this Darc.
repeated .Identity owners = 1;getOwnersOrBuilder in interface DarcOCSProto.DarcOrBuilderpublic List<DarcOCSProto.Identity> getUsersList()
Identities who can perform actions (write/read) with data on a skipchain.
repeated .Identity users = 2;getUsersList in interface DarcOCSProto.DarcOrBuilderpublic List<? extends DarcOCSProto.IdentityOrBuilder> getUsersOrBuilderList()
Identities who can perform actions (write/read) with data on a skipchain.
repeated .Identity users = 2;getUsersOrBuilderList in interface DarcOCSProto.DarcOrBuilderpublic int getUsersCount()
Identities who can perform actions (write/read) with data on a skipchain.
repeated .Identity users = 2;getUsersCount in interface DarcOCSProto.DarcOrBuilderpublic DarcOCSProto.Identity getUsers(int index)
Identities who can perform actions (write/read) with data on a skipchain.
repeated .Identity users = 2;getUsers in interface DarcOCSProto.DarcOrBuilderpublic DarcOCSProto.IdentityOrBuilder getUsersOrBuilder(int index)
Identities who can perform actions (write/read) with data on a skipchain.
repeated .Identity users = 2;getUsersOrBuilder in interface DarcOCSProto.DarcOrBuilderpublic boolean hasVersion()
Version should be monotonically increasing over the evolution of a Darc.
required sint32 version = 3;hasVersion in interface DarcOCSProto.DarcOrBuilderpublic int getVersion()
Version should be monotonically increasing over the evolution of a Darc.
required sint32 version = 3;getVersion in interface DarcOCSProto.DarcOrBuilderpublic boolean hasDescription()
Description is a free-form field that can hold any data as required by the user.
Darc itself will never depend on any of the data in here.
optional bytes description = 4;hasDescription in interface DarcOCSProto.DarcOrBuilderpublic com.google.protobuf.ByteString getDescription()
Description is a free-form field that can hold any data as required by the user.
Darc itself will never depend on any of the data in here.
optional bytes description = 4;getDescription in interface DarcOCSProto.DarcOrBuilderpublic boolean hasBaseid()
BaseID is the ID of the first darc of this Series
optional bytes baseid = 5;hasBaseid in interface DarcOCSProto.DarcOrBuilderpublic com.google.protobuf.ByteString getBaseid()
BaseID is the ID of the first darc of this Series
optional bytes baseid = 5;getBaseid in interface DarcOCSProto.DarcOrBuilderpublic boolean hasSignature()
Signature is calculated over the protobuf representation of [Owner, Users, Version, Description]
and needs to be created by an Owner from the previous valid Darc.
optional .Signature signature = 6;hasSignature in interface DarcOCSProto.DarcOrBuilderpublic DarcOCSProto.Signature getSignature()
Signature is calculated over the protobuf representation of [Owner, Users, Version, Description]
and needs to be created by an Owner from the previous valid Darc.
optional .Signature signature = 6;getSignature in interface DarcOCSProto.DarcOrBuilderpublic DarcOCSProto.SignatureOrBuilder getSignatureOrBuilder()
Signature is calculated over the protobuf representation of [Owner, Users, Version, Description]
and needs to be created by an Owner from the previous valid Darc.
optional .Signature signature = 6;getSignatureOrBuilder in interface DarcOCSProto.DarcOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DarcOCSProto.Darc parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcOCSProto.Darc parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcOCSProto.Darc parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcOCSProto.Darc parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcOCSProto.Darc parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcOCSProto.Darc parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcOCSProto.Darc parseFrom(InputStream input) throws IOException
IOExceptionpublic static DarcOCSProto.Darc parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DarcOCSProto.Darc parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DarcOCSProto.Darc parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DarcOCSProto.Darc parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DarcOCSProto.Darc parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DarcOCSProto.Darc.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DarcOCSProto.Darc.Builder newBuilder()
public static DarcOCSProto.Darc.Builder newBuilder(DarcOCSProto.Darc prototype)
public DarcOCSProto.Darc.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DarcOCSProto.Darc.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DarcOCSProto.Darc getDefaultInstance()
public static com.google.protobuf.Parser<DarcOCSProto.Darc> parser()
public com.google.protobuf.Parser<DarcOCSProto.Darc> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DarcOCSProto.Darc getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018. All rights reserved.