Class MetadataFeed.Scope.Builder

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

public static final class MetadataFeed.Scope.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Scope.Builder> implements MetadataFeed.ScopeOrBuilder
 Scope defines the scope of the metadata feed.
 Scopes are exclusive. Only one of the scopes can be specified.
 
Protobuf type google.cloud.dataplex.v1.MetadataFeed.Scope
  • 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.Scope.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.Scope.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.Scope.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public boolean getOrganizationLevel()
       Optional. Whether the metadata feed is at the organization-level.
      
       - If `true`, all changes happened to the entries in the same
       organization as the feed are published.
       - If `false`, you must specify a list of projects or a list of entry
       groups whose entries you want to listen to.
      
       The default is `false`.
       
      bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrganizationLevel in interface MetadataFeed.ScopeOrBuilder
      Returns:
      The organizationLevel.
    • setOrganizationLevel

      public MetadataFeed.Scope.Builder setOrganizationLevel(boolean value)
       Optional. Whether the metadata feed is at the organization-level.
      
       - If `true`, all changes happened to the entries in the same
       organization as the feed are published.
       - If `false`, you must specify a list of projects or a list of entry
       groups whose entries you want to listen to.
      
       The default is `false`.
       
      bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The organizationLevel to set.
      Returns:
      This builder for chaining.
    • clearOrganizationLevel

      public MetadataFeed.Scope.Builder clearOrganizationLevel()
       Optional. Whether the metadata feed is at the organization-level.
      
       - If `true`, all changes happened to the entries in the same
       organization as the feed are published.
       - If `false`, you must specify a list of projects or a list of entry
       groups whose entries you want to listen to.
      
       The default is `false`.
       
      bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getProjectsList

      public com.google.protobuf.ProtocolStringList getProjectsList()
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjectsList in interface MetadataFeed.ScopeOrBuilder
      Returns:
      A list containing the projects.
    • getProjectsCount

      public int getProjectsCount()
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjectsCount in interface MetadataFeed.ScopeOrBuilder
      Returns:
      The count of projects.
    • getProjects

      public String getProjects(int index)
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjects in interface MetadataFeed.ScopeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The projects at the given index.
    • getProjectsBytes

      public com.google.protobuf.ByteString getProjectsBytes(int index)
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjectsBytes in interface MetadataFeed.ScopeOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the projects at the given index.
    • setProjects

      public MetadataFeed.Scope.Builder setProjects(int index, String value)
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The projects to set.
      Returns:
      This builder for chaining.
    • addProjects

      public MetadataFeed.Scope.Builder addProjects(String value)
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The projects to add.
      Returns:
      This builder for chaining.
    • addAllProjects

      public MetadataFeed.Scope.Builder addAllProjects(Iterable<String> values)
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The projects to add.
      Returns:
      This builder for chaining.
    • clearProjects

      public MetadataFeed.Scope.Builder clearProjects()
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addProjectsBytes

      public MetadataFeed.Scope.Builder addProjectsBytes(com.google.protobuf.ByteString value)
       Optional. The projects whose entries you want to listen to.
       Must be in the same organization as the feed.
       Must be in the format: `projects/{project_id_or_number}`.
       
      repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the projects to add.
      Returns:
      This builder for chaining.
    • getEntryGroupsList

      public com.google.protobuf.ProtocolStringList getEntryGroupsList()
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntryGroupsList in interface MetadataFeed.ScopeOrBuilder
      Returns:
      A list containing the entryGroups.
    • getEntryGroupsCount

      public int getEntryGroupsCount()
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntryGroupsCount in interface MetadataFeed.ScopeOrBuilder
      Returns:
      The count of entryGroups.
    • getEntryGroups

      public String getEntryGroups(int index)
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntryGroups in interface MetadataFeed.ScopeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entryGroups at the given index.
    • getEntryGroupsBytes

      public com.google.protobuf.ByteString getEntryGroupsBytes(int index)
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntryGroupsBytes in interface MetadataFeed.ScopeOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the entryGroups at the given index.
    • setEntryGroups

      public MetadataFeed.Scope.Builder setEntryGroups(int index, String value)
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The entryGroups to set.
      Returns:
      This builder for chaining.
    • addEntryGroups

      public MetadataFeed.Scope.Builder addEntryGroups(String value)
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The entryGroups to add.
      Returns:
      This builder for chaining.
    • addAllEntryGroups

      public MetadataFeed.Scope.Builder addAllEntryGroups(Iterable<String> values)
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The entryGroups to add.
      Returns:
      This builder for chaining.
    • clearEntryGroups

      public MetadataFeed.Scope.Builder clearEntryGroups()
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addEntryGroupsBytes

      public MetadataFeed.Scope.Builder addEntryGroupsBytes(com.google.protobuf.ByteString value)
       Optional. The entry groups whose entries you want to listen to.
       Must be in the format:
       `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
       
      repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the entryGroups to add.
      Returns:
      This builder for chaining.