Class CreateAuthorizedViewRequest
java.lang.Object
com.google.cloud.bigtable.admin.v2.models.CreateAuthorizedViewRequest
Parameters for creating a new Cloud Bigtable
AuthorizedView, which represents subsets of
a particular table.
Sample code:
CreateAuthorizedViewRequest request =
CreateAuthorizedViewRequest.of("my-table", "my-new-authorized-view")
.setAuthorizedViewType(
SubsetView.create()
.addRowPrefix("row#")
.addFamilySubsets(
"my-family", FamilySubsets.create().addQualifier("column")));
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static CreateAuthorizedViewRequestsetAuthorizedViewType(AuthorizedView.AuthorizedViewType authorizedViewType) Sets the implementation for this authorized view.setDeletionProtection(boolean deletionProtection) Configures if the authorized view is deletion protected.Creates the request protobuf.
-
Method Details
-
of
public static CreateAuthorizedViewRequest of(@Nonnull String tableId, @Nonnull String authorizedViewId) -
setDeletionProtection
Configures if the authorized view is deletion protected. -
setAuthorizedViewType
public CreateAuthorizedViewRequest setAuthorizedViewType(@Nonnull AuthorizedView.AuthorizedViewType authorizedViewType) Sets the implementation for this authorized view.- See Also:
-
equals
-
hashCode
public int hashCode() -
toProto
@InternalApi public CreateAuthorizedViewRequest toProto(@Nonnull String projectId, @Nonnull String instanceId) Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.
-