public static final class EntityFilter.Builder extends GeneratedMessageV3.Builder<EntityFilter.Builder> 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.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EntityFilter.BuilderImplements
EntityFilterOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllKinds(Iterable<String> values)
public EntityFilter.Builder addAllKinds(Iterable<String> values)
If empty, then this represents all kinds.
repeated string kinds = 1;
Name | Description |
values | Iterable<String> The kinds to add. |
Type | Description |
EntityFilter.Builder | This builder for chaining. |
addAllNamespaceIds(Iterable<String> values)
public EntityFilter.Builder addAllNamespaceIds(Iterable<String> values)
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 |
values | Iterable<String> The namespaceIds to add. |
Type | Description |
EntityFilter.Builder | This builder for chaining. |
addKinds(String value)
public EntityFilter.Builder addKinds(String value)
If empty, then this represents all kinds.
repeated string kinds = 1;
Name | Description |
value | String The kinds to add. |
Type | Description |
EntityFilter.Builder | This builder for chaining. |
addKindsBytes(ByteString value)
public EntityFilter.Builder addKindsBytes(ByteString value)
If empty, then this represents all kinds.
repeated string kinds = 1;
Name | Description |
value | ByteString The bytes of the kinds to add. |
Type | Description |
EntityFilter.Builder | This builder for chaining. |
addNamespaceIds(String value)
public EntityFilter.Builder addNamespaceIds(String value)
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 |
value | String The namespaceIds to add. |
Type | Description |
EntityFilter.Builder | This builder for chaining. |
addNamespaceIdsBytes(ByteString value)
public EntityFilter.Builder addNamespaceIdsBytes(ByteString value)
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 |
value | ByteString The bytes of the namespaceIds to add. |
Type | Description |
EntityFilter.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EntityFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
EntityFilter.Builder |
build()
public EntityFilter build()
Type | Description |
EntityFilter |
buildPartial()
public EntityFilter buildPartial()
Type | Description |
EntityFilter |
clear()
public EntityFilter.Builder clear()
Type | Description |
EntityFilter.Builder |
clearField(Descriptors.FieldDescriptor field)
public EntityFilter.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
EntityFilter.Builder |
clearKinds()
public EntityFilter.Builder clearKinds()
If empty, then this represents all kinds.
repeated string kinds = 1;
Type | Description |
EntityFilter.Builder | This builder for chaining. |
clearNamespaceIds()
public EntityFilter.Builder clearNamespaceIds()
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 |
EntityFilter.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public EntityFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
EntityFilter.Builder |
clone()
public EntityFilter.Builder clone()
Type | Description |
EntityFilter.Builder |
getDefaultInstanceForType()
public EntityFilter getDefaultInstanceForType()
Type | Description |
EntityFilter |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(EntityFilter other)
public EntityFilter.Builder mergeFrom(EntityFilter other)
Name | Description |
other | EntityFilter |
Type | Description |
EntityFilter.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EntityFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityFilter.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public EntityFilter.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
EntityFilter.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EntityFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
EntityFilter.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public EntityFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
EntityFilter.Builder |
setKinds(int index, String value)
public EntityFilter.Builder setKinds(int index, String value)
If empty, then this represents all kinds.
repeated string kinds = 1;
Name | Description |
index | int The index to set the value at. |
value | String The kinds to set. |
Type | Description |
EntityFilter.Builder | This builder for chaining. |
setNamespaceIds(int index, String value)
public EntityFilter.Builder setNamespaceIds(int index, String value)
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 to set the value at. |
value | String The namespaceIds to set. |
Type | Description |
EntityFilter.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EntityFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
EntityFilter.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final EntityFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
EntityFilter.Builder |