Package com.google.datastore.admin.v1
Class EntityFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
com.google.datastore.admin.v1.EntityFilter.Builder
- All Implemented Interfaces:
EntityFilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EntityFilter
public static final class EntityFilter.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllKinds(Iterable<String> values) If empty, then this represents all kinds.addAllNamespaceIds(Iterable<String> values) An empty list represents all namespaces.If empty, then this represents all kinds.addKindsBytes(com.google.protobuf.ByteString value) If empty, then this represents all kinds.addNamespaceIds(String value) An empty list represents all namespaces.addNamespaceIdsBytes(com.google.protobuf.ByteString value) An empty list represents all namespaces.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If empty, then this represents all kinds.An empty list represents all namespaces.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKinds(int index) If empty, then this represents all kinds.com.google.protobuf.ByteStringgetKindsBytes(int index) If empty, then this represents all kinds.intIf empty, then this represents all kinds.com.google.protobuf.ProtocolStringListIf empty, then this represents all kinds.getNamespaceIds(int index) An empty list represents all namespaces.com.google.protobuf.ByteStringgetNamespaceIdsBytes(int index) An empty list represents all namespaces.intAn empty list represents all namespaces.com.google.protobuf.ProtocolStringListAn empty list represents all namespaces.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(EntityFilter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final EntityFilter.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) If empty, then this represents all kinds.setNamespaceIds(int index, String value) An empty list represents all namespaces.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final EntityFilter.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
setField
public EntityFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
setRepeatedField
public EntityFilter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
addRepeatedField
public EntityFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
mergeFrom
public EntityFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityFilter.Builder>- Throws:
IOException
-
getKindsList
public com.google.protobuf.ProtocolStringList getKindsList()If empty, then this represents all kinds.
repeated string kinds = 1;- Specified by:
getKindsListin interfaceEntityFilterOrBuilder- Returns:
- A list containing the kinds.
-
getKindsCount
public int getKindsCount()If empty, then this represents all kinds.
repeated string kinds = 1;- Specified by:
getKindsCountin interfaceEntityFilterOrBuilder- Returns:
- The count of kinds.
-
getKinds
If empty, then this represents all kinds.
repeated string kinds = 1;- Specified by:
getKindsin interfaceEntityFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The kinds at the given index.
-
getKindsBytes
public com.google.protobuf.ByteString getKindsBytes(int index) If empty, then this represents all kinds.
repeated string kinds = 1;- Specified by:
getKindsBytesin interfaceEntityFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the kinds at the given index.
-
setKinds
If empty, then this represents all kinds.
repeated string kinds = 1;- Parameters:
index- The index to set the value at.value- The kinds to set.- Returns:
- This builder for chaining.
-
addKinds
If empty, then this represents all kinds.
repeated string kinds = 1;- Parameters:
value- The kinds to add.- Returns:
- This builder for chaining.
-
addAllKinds
If empty, then this represents all kinds.
repeated string kinds = 1;- Parameters:
values- The kinds to add.- Returns:
- This builder for chaining.
-
clearKinds
If empty, then this represents all kinds.
repeated string kinds = 1;- Returns:
- This builder for chaining.
-
addKindsBytes
If empty, then this represents all kinds.
repeated string kinds = 1;- Parameters:
value- The bytes of the kinds to add.- Returns:
- This builder for chaining.
-
getNamespaceIdsList
public com.google.protobuf.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;- Specified by:
getNamespaceIdsListin interfaceEntityFilterOrBuilder- Returns:
- A list containing the namespaceIds.
-
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;- Specified by:
getNamespaceIdsCountin interfaceEntityFilterOrBuilder- Returns:
- The count of namespaceIds.
-
getNamespaceIds
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;- Specified by:
getNamespaceIdsin interfaceEntityFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The namespaceIds at the given index.
-
getNamespaceIdsBytes
public com.google.protobuf.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;- Specified by:
getNamespaceIdsBytesin interfaceEntityFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the namespaceIds at the given index.
-
setNamespaceIds
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;- Parameters:
index- The index to set the value at.value- The namespaceIds to set.- Returns:
- This builder for chaining.
-
addNamespaceIds
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;- Parameters:
value- The namespaceIds to add.- Returns:
- This builder for chaining.
-
addAllNamespaceIds
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;- Parameters:
values- The namespaceIds to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addNamespaceIdsBytes
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;- Parameters:
value- The bytes of the namespaceIds to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EntityFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-
mergeUnknownFields
public final EntityFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
-