Class CreateAuthorizedViewRequest (2.39.5)

public final class 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: AuthorizedViewfor more details.

Inheritance

Object > CreateAuthorizedViewRequest

Static Methods

of(String tableId, String authorizedViewId)

public static CreateAuthorizedViewRequest of(String tableId, String authorizedViewId)
Parameters
Name Description
tableId String
authorizedViewId String
Returns
Type Description
CreateAuthorizedViewRequest

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

setAuthorizedViewType(AuthorizedView.AuthorizedViewType authorizedViewType)

public CreateAuthorizedViewRequest setAuthorizedViewType(AuthorizedView.AuthorizedViewType authorizedViewType)

Sets the implementation for this authorized view. See Also: AuthorizedViewTypefor details.

Parameter
Name Description
authorizedViewType AuthorizedView.AuthorizedViewType
Returns
Type Description
CreateAuthorizedViewRequest

setDeletionProtection(boolean deletionProtection)

public CreateAuthorizedViewRequest setDeletionProtection(boolean deletionProtection)

Configures if the authorized view is deletion protected.

Parameter
Name Description
deletionProtection boolean
Returns
Type Description
CreateAuthorizedViewRequest

toProto(String projectId, String instanceId)

public CreateAuthorizedViewRequest toProto(String projectId, String instanceId)

Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.

Parameters
Name Description
projectId String
instanceId String
Returns
Type Description
com.google.bigtable.admin.v2.CreateAuthorizedViewRequest