Class MetadataFeed.Filters.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Filters.Builder>
com.google.cloud.dataplex.v1.MetadataFeed.Filters.Builder
All Implemented Interfaces:
MetadataFeed.FiltersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MetadataFeed.Filters

public static final class MetadataFeed.Filters.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Filters.Builder> implements MetadataFeed.FiltersOrBuilder
 Filters defines the type of changes that you want to listen to.
 You can have multiple entry type filters and multiple aspect type filters.
 All of the entry type filters are OR'ed together.
 All of the aspect type filters are OR'ed together.
 All of the entry type filters and aspect type filters are AND'ed together.
 
Protobuf type google.cloud.dataplex.v1.MetadataFeed.Filters
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Filters.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.GeneratedMessage.Builder<MetadataFeed.Filters.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.GeneratedMessage.Builder<MetadataFeed.Filters.Builder>
    • getDefaultInstanceForType

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

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

      public MetadataFeed.Filters buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MetadataFeed.Filters.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<MetadataFeed.Filters.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Filters.Builder>
    • mergeFrom

      public MetadataFeed.Filters.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<MetadataFeed.Filters.Builder>
      Throws:
      IOException
    • getEntryTypesList

      public com.google.protobuf.ProtocolStringList getEntryTypesList()
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntryTypesList in interface MetadataFeed.FiltersOrBuilder
      Returns:
      A list containing the entryTypes.
    • getEntryTypesCount

      public int getEntryTypesCount()
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntryTypesCount in interface MetadataFeed.FiltersOrBuilder
      Returns:
      The count of entryTypes.
    • getEntryTypes

      public String getEntryTypes(int index)
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntryTypes in interface MetadataFeed.FiltersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entryTypes at the given index.
    • getEntryTypesBytes

      public com.google.protobuf.ByteString getEntryTypesBytes(int index)
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntryTypesBytes in interface MetadataFeed.FiltersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the entryTypes at the given index.
    • setEntryTypes

      public MetadataFeed.Filters.Builder setEntryTypes(int index, String value)
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The entryTypes to set.
      Returns:
      This builder for chaining.
    • addEntryTypes

      public MetadataFeed.Filters.Builder addEntryTypes(String value)
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The entryTypes to add.
      Returns:
      This builder for chaining.
    • addAllEntryTypes

      public MetadataFeed.Filters.Builder addAllEntryTypes(Iterable<String> values)
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The entryTypes to add.
      Returns:
      This builder for chaining.
    • clearEntryTypes

      public MetadataFeed.Filters.Builder clearEntryTypes()
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addEntryTypesBytes

      public MetadataFeed.Filters.Builder addEntryTypesBytes(com.google.protobuf.ByteString value)
       Optional. The entry types that you want to listen to, specified as
       relative resource names in the format
       `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
       Only entries that belong to the specified entry types are published.
       
      repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the entryTypes to add.
      Returns:
      This builder for chaining.
    • getAspectTypesList

      public com.google.protobuf.ProtocolStringList getAspectTypesList()
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAspectTypesList in interface MetadataFeed.FiltersOrBuilder
      Returns:
      A list containing the aspectTypes.
    • getAspectTypesCount

      public int getAspectTypesCount()
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAspectTypesCount in interface MetadataFeed.FiltersOrBuilder
      Returns:
      The count of aspectTypes.
    • getAspectTypes

      public String getAspectTypes(int index)
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAspectTypes in interface MetadataFeed.FiltersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The aspectTypes at the given index.
    • getAspectTypesBytes

      public com.google.protobuf.ByteString getAspectTypesBytes(int index)
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAspectTypesBytes in interface MetadataFeed.FiltersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the aspectTypes at the given index.
    • setAspectTypes

      public MetadataFeed.Filters.Builder setAspectTypes(int index, String value)
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The aspectTypes to set.
      Returns:
      This builder for chaining.
    • addAspectTypes

      public MetadataFeed.Filters.Builder addAspectTypes(String value)
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The aspectTypes to add.
      Returns:
      This builder for chaining.
    • addAllAspectTypes

      public MetadataFeed.Filters.Builder addAllAspectTypes(Iterable<String> values)
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The aspectTypes to add.
      Returns:
      This builder for chaining.
    • clearAspectTypes

      public MetadataFeed.Filters.Builder clearAspectTypes()
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addAspectTypesBytes

      public MetadataFeed.Filters.Builder addAspectTypesBytes(com.google.protobuf.ByteString value)
       Optional. The aspect types that you want to listen to. Depending on how
       the aspect is attached to the entry, in the format:
       `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
       
      repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the aspectTypes to add.
      Returns:
      This builder for chaining.
    • getChangeTypesList

      public List<MetadataFeed.Filters.ChangeType> getChangeTypesList()
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getChangeTypesList in interface MetadataFeed.FiltersOrBuilder
      Returns:
      A list containing the changeTypes.
    • getChangeTypesCount

      public int getChangeTypesCount()
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getChangeTypesCount in interface MetadataFeed.FiltersOrBuilder
      Returns:
      The count of changeTypes.
    • getChangeTypes

      public MetadataFeed.Filters.ChangeType getChangeTypes(int index)
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getChangeTypes in interface MetadataFeed.FiltersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The changeTypes at the given index.
    • setChangeTypes

      public MetadataFeed.Filters.Builder setChangeTypes(int index, MetadataFeed.Filters.ChangeType value)
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The changeTypes to set.
      Returns:
      This builder for chaining.
    • addChangeTypes

       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The changeTypes to add.
      Returns:
      This builder for chaining.
    • addAllChangeTypes

      public MetadataFeed.Filters.Builder addAllChangeTypes(Iterable<? extends MetadataFeed.Filters.ChangeType> values)
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The changeTypes to add.
      Returns:
      This builder for chaining.
    • clearChangeTypes

      public MetadataFeed.Filters.Builder clearChangeTypes()
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getChangeTypesValueList

      public List<Integer> getChangeTypesValueList()
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getChangeTypesValueList in interface MetadataFeed.FiltersOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for changeTypes.
    • getChangeTypesValue

      public int getChangeTypesValue(int index)
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getChangeTypesValue in interface MetadataFeed.FiltersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of changeTypes at the given index.
    • setChangeTypesValue

      public MetadataFeed.Filters.Builder setChangeTypesValue(int index, int value)
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for changeTypes to set.
      Returns:
      This builder for chaining.
    • addChangeTypesValue

      public MetadataFeed.Filters.Builder addChangeTypesValue(int value)
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for changeTypes to add.
      Returns:
      This builder for chaining.
    • addAllChangeTypesValue

      public MetadataFeed.Filters.Builder addAllChangeTypesValue(Iterable<Integer> values)
       Optional. The type of change that you want to listen to.
       If not specified, all changes are published.
       
      repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for changeTypes to add.
      Returns:
      This builder for chaining.