Class CreateAuthorizedViewRequest (2.37.0)

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
NameDescription
tableIdString
authorizedViewIdString
Returns
TypeDescription
CreateAuthorizedViewRequest

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

setAuthorizedViewType(AuthorizedView.AuthorizedViewType authorizedViewType)

public CreateAuthorizedViewRequest setAuthorizedViewType(AuthorizedView.AuthorizedViewType authorizedViewType)

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

Parameter
NameDescription
authorizedViewTypeAuthorizedView.AuthorizedViewType
Returns
TypeDescription
CreateAuthorizedViewRequest

setDeletionProtection(boolean deletionProtection)

public CreateAuthorizedViewRequest setDeletionProtection(boolean deletionProtection)

Configures if the authorized view is deletion protected.

Parameter
NameDescription
deletionProtectionboolean
Returns
TypeDescription
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
NameDescription
projectIdString
instanceIdString
Returns
TypeDescription
com.google.bigtable.admin.v2.CreateAuthorizedViewRequest