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
Static Fields
KINDS_FIELD_NUMBER
public static final int KINDS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAMESPACE_IDS_FIELD_NUMBER
public static final int NAMESPACE_IDS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static EntityFilter getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static EntityFilter.Builder newBuilder()
newBuilder(EntityFilter prototype)
public static EntityFilter.Builder newBuilder(EntityFilter prototype)
public static EntityFilter parseDelimitedFrom(InputStream input)
public static EntityFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static EntityFilter parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static EntityFilter parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(CodedInputStream input)
public static EntityFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(InputStream input)
public static EntityFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static EntityFilter parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EntityFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<EntityFilter> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public EntityFilter getDefaultInstanceForType()
getKinds(int index)
public String getKinds(int index)
If empty, then this represents all kinds.
repeated string kinds = 1;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
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;
Returns |
---|
Type | Description |
int | The count of kinds.
|
getKindsList()
public ProtocolStringList getKindsList()
If empty, then this represents all kinds.
repeated string kinds = 1;
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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
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;
Returns |
---|
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;
getParserForType()
public Parser<EntityFilter> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public EntityFilter.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected EntityFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public EntityFilter.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides