public final class MaterializedView extends Object
MaterializedView protocol buffer
object.
A MaterializedView represents subsets of a particular table based on rules. The access to each MaterializedView can be configured separately from the Table.
Users can perform read/write operation on a MaterializedView by providing a materializedView id besides a table id, in which case the semantics remain identical as reading/writing on a Table except that visibility is restricted to the subset of the Table that the MaterializedView represents.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static MaterializedView |
fromProto(MaterializedView proto)
Wraps the protobuf.
|
String |
getId()
Gets the materialized view's id.
|
String |
getInstanceId()
Gets the id of the instance that owns this MaterializedView.
|
String |
getQuery()
Gets the query of this materialized view.
|
int |
hashCode() |
boolean |
isDeletionProtected()
Returns whether this materialized view is deletion protected.
|
MaterializedView |
toProto()
Creates the request protobuf.
|
@InternalApi public static MaterializedView fromProto(@Nonnull MaterializedView proto)
public String getId()
public String getInstanceId()
public boolean isDeletionProtected()
public String getQuery()
@InternalApi public MaterializedView toProto()
Copyright © 2026 Google LLC. All rights reserved.