Creates a data access label.
Data access labels are applied to incoming event data and selected in data
access scopes (another resource), and only users with scopes containing the
label can see data with that label. Currently, the data access label
resource only includes custom labels, which are labels that correspond
to UDM queries over event data.
Creates a data access scope.
Data access scope is a combination of allowed and denied labels attached
to a permission group. If a scope has allowed labels A and B and denied
labels C and D, then the group of people attached to the scope
will have permissions to see all events labeled with A or B (or both) and
not labeled with either C or D.
Deletes a data access label. When a label is deleted, new
data that enters in the system will not receive the label, but the label
will not be removed from old data that still refers to it.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class DataAccessControlServiceGrpc.DataAccessControlServiceStub (0.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.10.0 (latest)](/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DataAccessControlServiceGrpc.DataAccessControlServiceStub)\n- [0.8.0](/java/docs/reference/google-cloud-chronicle/0.8.0/com.google.cloud.chronicle.v1.DataAccessControlServiceGrpc.DataAccessControlServiceStub)\n- [0.6.0](/java/docs/reference/google-cloud-chronicle/0.6.0/com.google.cloud.chronicle.v1.DataAccessControlServiceGrpc.DataAccessControlServiceStub)\n- [0.5.0](/java/docs/reference/google-cloud-chronicle/0.5.0/com.google.cloud.chronicle.v1.DataAccessControlServiceGrpc.DataAccessControlServiceStub)\n- [0.2.0](/java/docs/reference/google-cloud-chronicle/0.2.0/com.google.cloud.chronicle.v1.DataAccessControlServiceGrpc.DataAccessControlServiceStub)\n- [0.1.0](/java/docs/reference/google-cloud-chronicle/0.1.0/com.google.cloud.chronicle.v1.DataAccessControlServiceGrpc.DataAccessControlServiceStub) \n\n public static final class DataAccessControlServiceGrpc.DataAccessControlServiceStub extends AbstractAsyncStub\u003cDataAccessControlServiceGrpc.DataAccessControlServiceStub\u003e\n\nA stub to allow clients to do asynchronous rpc calls to service DataAccessControlService.\n\nDataAccessControlService exposes resources and endpoints related to data\naccess control. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e io.grpc.stub.AbstractStub \\\u003e io.grpc.stub.AbstractAsyncStub \\\u003e DataAccessControlServiceGrpc.DataAccessControlServiceStub \n\nInherited Members\n-----------------\n\nio.grpc.stub.AbstractAsyncStub.\\\u003cT\\\u003enewStub(io.grpc.stub.AbstractStub.StubFactory\\\u003cT\\\u003e,io.grpc.Channel) \nio.grpc.stub.AbstractAsyncStub.\\\u003cT\\\u003enewStub(io.grpc.stub.AbstractStub.StubFactory\\\u003cT\\\u003e,io.grpc.Channel,io.grpc.CallOptions) \nio.grpc.stub.AbstractStub.\\\u003cT\\\u003ewithOption(io.grpc.CallOptions.Key\\\u003cT\\\u003e,T) \nio.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions) \nio.grpc.stub.AbstractStub.getCallOptions() \nio.grpc.stub.AbstractStub.getChannel() \nio.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials) \nio.grpc.stub.AbstractStub.withChannel(io.grpc.Channel) \nio.grpc.stub.AbstractStub.withCompression(java.lang.String) \nio.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline) \nio.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration) \nio.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit) \nio.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor) \nio.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...) \nio.grpc.stub.AbstractStub.withMaxInboundMessageSize(int) \nio.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int) \nio.grpc.stub.AbstractStub.withOnReadyThreshold(int) \nio.grpc.stub.AbstractStub.withWaitForReady() \n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nMethods\n-------\n\n### build(Channel channel, CallOptions callOptions)\n\n protected DataAccessControlServiceGrpc.DataAccessControlServiceStub build(Channel channel, CallOptions callOptions)\n\n**Overrides** \nio.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)\n\n### createDataAccessLabel(CreateDataAccessLabelRequest request, StreamObserver\\\u003cDataAccessLabel\\\u003e responseObserver)\n\n public void createDataAccessLabel(CreateDataAccessLabelRequest request, StreamObserver\u003cDataAccessLabel\u003e responseObserver)\n\nCreates a data access label.\nData access labels are applied to incoming event data and selected in data\naccess scopes (another resource), and only users with scopes containing the\nlabel can see data with that label. Currently, the data access label\nresource only includes custom labels, which are labels that correspond\nto UDM queries over event data.\n\n### createDataAccessScope(CreateDataAccessScopeRequest request, StreamObserver\\\u003cDataAccessScope\\\u003e responseObserver)\n\n public void createDataAccessScope(CreateDataAccessScopeRequest request, StreamObserver\u003cDataAccessScope\u003e responseObserver)\n\nCreates a data access scope.\nData access scope is a combination of allowed and denied labels attached\nto a permission group. If a scope has allowed labels A and B and denied\nlabels C and D, then the group of people attached to the scope\nwill have permissions to see all events labeled with A or B (or both) and\nnot labeled with either C or D.\n\n### deleteDataAccessLabel(DeleteDataAccessLabelRequest request, StreamObserver\\\u003cEmpty\\\u003e responseObserver)\n\n public void deleteDataAccessLabel(DeleteDataAccessLabelRequest request, StreamObserver\u003cEmpty\u003e responseObserver)\n\nDeletes a data access label. When a label is deleted, new\ndata that enters in the system will not receive the label, but the label\nwill not be removed from old data that still refers to it.\n\n### deleteDataAccessScope(DeleteDataAccessScopeRequest request, StreamObserver\\\u003cEmpty\\\u003e responseObserver)\n\n public void deleteDataAccessScope(DeleteDataAccessScopeRequest request, StreamObserver\u003cEmpty\u003e responseObserver)\n\nDeletes a data access scope.\n\n### getDataAccessLabel(GetDataAccessLabelRequest request, StreamObserver\\\u003cDataAccessLabel\\\u003e responseObserver)\n\n public void getDataAccessLabel(GetDataAccessLabelRequest request, StreamObserver\u003cDataAccessLabel\u003e responseObserver)\n\nGets a data access label.\n\n### getDataAccessScope(GetDataAccessScopeRequest request, StreamObserver\\\u003cDataAccessScope\\\u003e responseObserver)\n\n public void getDataAccessScope(GetDataAccessScopeRequest request, StreamObserver\u003cDataAccessScope\u003e responseObserver)\n\nRetrieves an existing data access scope.\n\n### listDataAccessLabels(ListDataAccessLabelsRequest request, StreamObserver\\\u003cListDataAccessLabelsResponse\\\u003e responseObserver)\n\n public void listDataAccessLabels(ListDataAccessLabelsRequest request, StreamObserver\u003cListDataAccessLabelsResponse\u003e responseObserver)\n\nLists all data access labels for the customer.\n\n### listDataAccessScopes(ListDataAccessScopesRequest request, StreamObserver\\\u003cListDataAccessScopesResponse\\\u003e responseObserver)\n\n public void listDataAccessScopes(ListDataAccessScopesRequest request, StreamObserver\u003cListDataAccessScopesResponse\u003e responseObserver)\n\nLists all existing data access scopes for the customer.\n\n### updateDataAccessLabel(UpdateDataAccessLabelRequest request, StreamObserver\\\u003cDataAccessLabel\\\u003e responseObserver)\n\n public void updateDataAccessLabel(UpdateDataAccessLabelRequest request, StreamObserver\u003cDataAccessLabel\u003e responseObserver)\n\nUpdates a data access label.\n\n### updateDataAccessScope(UpdateDataAccessScopeRequest request, StreamObserver\\\u003cDataAccessScope\\\u003e responseObserver)\n\n public void updateDataAccessScope(UpdateDataAccessScopeRequest request, StreamObserver\u003cDataAccessScope\u003e responseObserver)\n\nUpdates a data access scope."]]