public final class EntityFilter extends GeneratedMessageV3 implements EntityFilterOrBuilder
Identifies a subset of entities in a project. This is specified as combinations of kinds and namespaces (either or both of which may be all, as described in the following examples). Example usage: Entire project: kinds=[], namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'], namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo', 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz namespace: kinds=[], namespace_ids=['Baz']
Protobuf type google.datastore.admin.v1.EntityFilter
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > EntityFilterImplements
EntityFilterOrBuilderStatic Fields
KINDS_FIELD_NUMBER
public static final int KINDS_FIELD_NUMBER
Type | Description |
int |
NAMESPACE_IDS_FIELD_NUMBER
public static final int NAMESPACE_IDS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static EntityFilter getDefaultInstance()
Type | Description |
EntityFilter |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static EntityFilter.Builder newBuilder()
Type | Description |
EntityFilter.Builder |
newBuilder(EntityFilter prototype)
public static EntityFilter.Builder newBuilder(EntityFilter prototype)
Name | Description |
prototype | EntityFilter |
Type | Description |
EntityFilter.Builder |
parseDelimitedFrom(InputStream input)
public static EntityFilter parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
EntityFilter |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityFilter |
Type | Description |
IOException |
parseFrom(byte[] data)
public static EntityFilter parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
EntityFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static EntityFilter parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
EntityFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static EntityFilter parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
EntityFilter |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityFilter |
Type | Description |
IOException |
parseFrom(InputStream input)
public static EntityFilter parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
EntityFilter |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityFilter |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static EntityFilter parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
EntityFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityFilter |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<EntityFilter> parser()
Type | Description |
Parser<EntityFilter> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public EntityFilter getDefaultInstanceForType()
Type | Description |
EntityFilter |
getKinds(int index)
public String getKinds(int index)
If empty, then this represents all kinds.
repeated string kinds = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The kinds at the given index. |
getKindsBytes(int index)
public ByteString getKindsBytes(int index)
If empty, then this represents all kinds.
repeated string kinds = 1;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the kinds at the given index. |
getKindsCount()
public int getKindsCount()
If empty, then this represents all kinds.
repeated string kinds = 1;
Type | Description |
int | The count of kinds. |
getKindsList()
public ProtocolStringList getKindsList()
If empty, then this represents all kinds.
repeated string kinds = 1;
Type | Description |
ProtocolStringList | A list containing the kinds. |
getNamespaceIds(int index)
public String getNamespaceIds(int index)
An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces. An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
repeated string namespace_ids = 2;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The namespaceIds at the given index. |
getNamespaceIdsBytes(int index)
public ByteString getNamespaceIdsBytes(int index)
An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces. An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
repeated string namespace_ids = 2;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the namespaceIds at the given index. |
getNamespaceIdsCount()
public int getNamespaceIdsCount()
An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces. An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
repeated string namespace_ids = 2;
Type | Description |
int | The count of namespaceIds. |
getNamespaceIdsList()
public ProtocolStringList getNamespaceIdsList()
An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces. An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
repeated string namespace_ids = 2;
Type | Description |
ProtocolStringList | A list containing the namespaceIds. |
getParserForType()
public Parser<EntityFilter> getParserForType()
Type | Description |
Parser<EntityFilter> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public EntityFilter.Builder newBuilderForType()
Type | Description |
EntityFilter.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected EntityFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
EntityFilter.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public EntityFilter.Builder toBuilder()
Type | Description |
EntityFilter.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |