public static final class Document.AclInfo.AccessRestriction extends com.google.protobuf.GeneratedMessageV3 implements Document.AclInfo.AccessRestrictionOrBuilder
AclRestriction to model complex inheritance restrictions.
Example: Modeling a "Both Permit" inheritance, where to access a
child document, user needs to have access to parent document.
Document Hierarchy - Space_S --> Page_P.
Readers:
Space_S: group_1, user_1
Page_P: group_2, group_3, user_2
Space_S ACL Restriction -
{
"acl_info": {
"readers": [
{
"principals": [
{
"group_id": "group_1"
},
{
"user_id": "user_1"
}
]
}
]
}
}
Page_P ACL Restriction.
{
"acl_info": {
"readers": [
{
"principals": [
{
"group_id": "group_2"
},
{
"group_id": "group_3"
},
{
"user_id": "user_2"
}
],
},
{
"principals": [
{
"group_id": "group_1"
},
{
"user_id": "user_1"
}
],
}
]
}
}
Protobuf type google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction| Modifier and Type | Class and Description |
|---|---|
static class |
Document.AclInfo.AccessRestriction.Builder
AclRestriction to model complex inheritance restrictions.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
IDP_WIDE_FIELD_NUMBER |
static int |
PRINCIPALS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Document.AclInfo.AccessRestriction |
getDefaultInstance() |
Document.AclInfo.AccessRestriction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIdpWide()
All users within the Identity Provider.
|
com.google.protobuf.Parser<Document.AclInfo.AccessRestriction> |
getParserForType() |
Principal |
getPrincipals(int index)
List of principals.
|
int |
getPrincipalsCount()
List of principals.
|
List<Principal> |
getPrincipalsList()
List of principals.
|
PrincipalOrBuilder |
getPrincipalsOrBuilder(int index)
List of principals.
|
List<? extends PrincipalOrBuilder> |
getPrincipalsOrBuilderList()
List of principals.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Document.AclInfo.AccessRestriction.Builder |
newBuilder() |
static Document.AclInfo.AccessRestriction.Builder |
newBuilder(Document.AclInfo.AccessRestriction prototype) |
Document.AclInfo.AccessRestriction.Builder |
newBuilderForType() |
protected Document.AclInfo.AccessRestriction.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document.AclInfo.AccessRestriction |
parseDelimitedFrom(InputStream input) |
static Document.AclInfo.AccessRestriction |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.AclInfo.AccessRestriction |
parseFrom(byte[] data) |
static Document.AclInfo.AccessRestriction |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.AclInfo.AccessRestriction |
parseFrom(ByteBuffer data) |
static Document.AclInfo.AccessRestriction |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.AclInfo.AccessRestriction |
parseFrom(com.google.protobuf.ByteString data) |
static Document.AclInfo.AccessRestriction |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.AclInfo.AccessRestriction |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document.AclInfo.AccessRestriction |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.AclInfo.AccessRestriction |
parseFrom(InputStream input) |
static Document.AclInfo.AccessRestriction |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document.AclInfo.AccessRestriction> |
parser() |
Document.AclInfo.AccessRestriction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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 PRINCIPALS_FIELD_NUMBER
public static final int IDP_WIDE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 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<Principal> getPrincipalsList()
List of principals.
repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1;getPrincipalsList in interface Document.AclInfo.AccessRestrictionOrBuilderpublic List<? extends PrincipalOrBuilder> getPrincipalsOrBuilderList()
List of principals.
repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1;getPrincipalsOrBuilderList in interface Document.AclInfo.AccessRestrictionOrBuilderpublic int getPrincipalsCount()
List of principals.
repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1;getPrincipalsCount in interface Document.AclInfo.AccessRestrictionOrBuilderpublic Principal getPrincipals(int index)
List of principals.
repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1;getPrincipals in interface Document.AclInfo.AccessRestrictionOrBuilderpublic PrincipalOrBuilder getPrincipalsOrBuilder(int index)
List of principals.
repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1;getPrincipalsOrBuilder in interface Document.AclInfo.AccessRestrictionOrBuilderpublic boolean getIdpWide()
All users within the Identity Provider.
bool idp_wide = 2;getIdpWide in interface Document.AclInfo.AccessRestrictionOrBuilderpublic 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 Document.AclInfo.AccessRestriction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.AclInfo.AccessRestriction parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.AclInfo.AccessRestriction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.AclInfo.AccessRestriction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.AclInfo.AccessRestriction.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.AclInfo.AccessRestriction.Builder newBuilder()
public static Document.AclInfo.AccessRestriction.Builder newBuilder(Document.AclInfo.AccessRestriction prototype)
public Document.AclInfo.AccessRestriction.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.AclInfo.AccessRestriction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.AclInfo.AccessRestriction getDefaultInstance()
public static com.google.protobuf.Parser<Document.AclInfo.AccessRestriction> parser()
public com.google.protobuf.Parser<Document.AclInfo.AccessRestriction> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.AclInfo.AccessRestriction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.