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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • clear

      public EntityFilter.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • getDefaultInstanceForType

      public EntityFilter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EntityFilter build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EntityFilter buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public EntityFilter.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • setField

      public EntityFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • clearField

      public EntityFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • clearOneof

      public EntityFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • setRepeatedField

      public EntityFilter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • addRepeatedField

      public EntityFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • mergeFrom

      public EntityFilter.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EntityFilter.Builder>
    • mergeFrom

      public EntityFilter.Builder mergeFrom(EntityFilter other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getKindsList in interface EntityFilterOrBuilder
      Returns:
      A list containing the kinds.
    • getKindsCount

      public int getKindsCount()
       If empty, then this represents all kinds.
       
      repeated string kinds = 1;
      Specified by:
      getKindsCount in interface EntityFilterOrBuilder
      Returns:
      The count of kinds.
    • getKinds

      public String getKinds(int index)
       If empty, then this represents all kinds.
       
      repeated string kinds = 1;
      Specified by:
      getKinds in interface EntityFilterOrBuilder
      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:
      getKindsBytes in interface EntityFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the kinds at the given index.
    • setKinds

      public EntityFilter.Builder setKinds(int index, String value)
       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

      public EntityFilter.Builder addKinds(String value)
       If empty, then this represents all kinds.
       
      repeated string kinds = 1;
      Parameters:
      value - The kinds to add.
      Returns:
      This builder for chaining.
    • addAllKinds

      public EntityFilter.Builder addAllKinds(Iterable<String> values)
       If empty, then this represents all kinds.
       
      repeated string kinds = 1;
      Parameters:
      values - The kinds to add.
      Returns:
      This builder for chaining.
    • clearKinds

      public EntityFilter.Builder clearKinds()
       If empty, then this represents all kinds.
       
      repeated string kinds = 1;
      Returns:
      This builder for chaining.
    • addKindsBytes

      public EntityFilter.Builder addKindsBytes(com.google.protobuf.ByteString value)
       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:
      getNamespaceIdsList in interface EntityFilterOrBuilder
      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:
      getNamespaceIdsCount in interface EntityFilterOrBuilder
      Returns:
      The count of namespaceIds.
    • getNamespaceIds

      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;
      Specified by:
      getNamespaceIds in interface EntityFilterOrBuilder
      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:
      getNamespaceIdsBytes in interface EntityFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the namespaceIds at the given index.
    • setNamespaceIds

      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;
      Parameters:
      index - The index to set the value at.
      value - The namespaceIds to set.
      Returns:
      This builder for chaining.
    • addNamespaceIds

      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;
      Parameters:
      value - The namespaceIds to add.
      Returns:
      This builder for chaining.
    • addAllNamespaceIds

      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;
      Parameters:
      values - The namespaceIds to add.
      Returns:
      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;
      Returns:
      This builder for chaining.
    • addNamespaceIdsBytes

      public EntityFilter.Builder addNamespaceIdsBytes(com.google.protobuf.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;
      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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>
    • mergeUnknownFields

      public final EntityFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityFilter.Builder>