Class MetadataFeed.Builder

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

public static final class MetadataFeed.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Builder> implements MetadataFeedOrBuilder
 MetadataFeed contains information related to the metadata feed.
 
Protobuf type google.cloud.dataplex.v1.MetadataFeed
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public MetadataFeed.Builder mergeFrom(MetadataFeed other)
    • isInitialized

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

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

      public MetadataFeed.EndpointCase getEndpointCase()
      Specified by:
      getEndpointCase in interface MetadataFeedOrBuilder
    • clearEndpoint

      public MetadataFeed.Builder clearEndpoint()
    • getName

      public String getName()
       Identifier. The resource name of the metadata feed, in the format
       `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface MetadataFeedOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the metadata feed, in the format
       `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface MetadataFeedOrBuilder
      Returns:
      The bytes for name.
    • setName

      public MetadataFeed.Builder setName(String value)
       Identifier. The resource name of the metadata feed, in the format
       `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public MetadataFeed.Builder clearName()
       Identifier. The resource name of the metadata feed, in the format
       `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public MetadataFeed.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the metadata feed, in the format
       `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. A system-generated, globally unique ID for the metadata job.
       If the metadata job is deleted and then re-created with the same name, this
       ID is different.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface MetadataFeedOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. A system-generated, globally unique ID for the metadata job.
       If the metadata job is deleted and then re-created with the same name, this
       ID is different.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface MetadataFeedOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public MetadataFeed.Builder setUid(String value)
       Output only. A system-generated, globally unique ID for the metadata job.
       If the metadata job is deleted and then re-created with the same name, this
       ID is different.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public MetadataFeed.Builder clearUid()
       Output only. A system-generated, globally unique ID for the metadata job.
       If the metadata job is deleted and then re-created with the same name, this
       ID is different.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public MetadataFeed.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. A system-generated, globally unique ID for the metadata job.
       If the metadata job is deleted and then re-created with the same name, this
       ID is different.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • hasScope

      public boolean hasScope()
       Required. The scope of the metadata feed.
       Only the in scope changes are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasScope in interface MetadataFeedOrBuilder
      Returns:
      Whether the scope field is set.
    • getScope

      public MetadataFeed.Scope getScope()
       Required. The scope of the metadata feed.
       Only the in scope changes are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScope in interface MetadataFeedOrBuilder
      Returns:
      The scope.
    • setScope

      public MetadataFeed.Builder setScope(MetadataFeed.Scope value)
       Required. The scope of the metadata feed.
       Only the in scope changes are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • setScope

      public MetadataFeed.Builder setScope(MetadataFeed.Scope.Builder builderForValue)
       Required. The scope of the metadata feed.
       Only the in scope changes are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeScope

      public MetadataFeed.Builder mergeScope(MetadataFeed.Scope value)
       Required. The scope of the metadata feed.
       Only the in scope changes are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearScope

      public MetadataFeed.Builder clearScope()
       Required. The scope of the metadata feed.
       Only the in scope changes are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • getScopeBuilder

      public MetadataFeed.Scope.Builder getScopeBuilder()
       Required. The scope of the metadata feed.
       Only the in scope changes are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • getScopeOrBuilder

      public MetadataFeed.ScopeOrBuilder getScopeOrBuilder()
       Required. The scope of the metadata feed.
       Only the in scope changes are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeOrBuilder in interface MetadataFeedOrBuilder
    • hasFilters

      public boolean hasFilters()
       Optional. The filters of the metadata feed.
       Only the changes that match the filters are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFilters in interface MetadataFeedOrBuilder
      Returns:
      Whether the filters field is set.
    • getFilters

      public MetadataFeed.Filters getFilters()
       Optional. The filters of the metadata feed.
       Only the changes that match the filters are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilters in interface MetadataFeedOrBuilder
      Returns:
      The filters.
    • setFilters

      public MetadataFeed.Builder setFilters(MetadataFeed.Filters value)
       Optional. The filters of the metadata feed.
       Only the changes that match the filters are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setFilters

      public MetadataFeed.Builder setFilters(MetadataFeed.Filters.Builder builderForValue)
       Optional. The filters of the metadata feed.
       Only the changes that match the filters are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFilters

      public MetadataFeed.Builder mergeFilters(MetadataFeed.Filters value)
       Optional. The filters of the metadata feed.
       Only the changes that match the filters are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearFilters

      public MetadataFeed.Builder clearFilters()
       Optional. The filters of the metadata feed.
       Only the changes that match the filters are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getFiltersBuilder

      public MetadataFeed.Filters.Builder getFiltersBuilder()
       Optional. The filters of the metadata feed.
       Only the changes that match the filters are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getFiltersOrBuilder

      public MetadataFeed.FiltersOrBuilder getFiltersOrBuilder()
       Optional. The filters of the metadata feed.
       Only the changes that match the filters are published.
       
      .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFiltersOrBuilder in interface MetadataFeedOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when the feed was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface MetadataFeedOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the feed was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface MetadataFeedOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public MetadataFeed.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the feed was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public MetadataFeed.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the feed was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public MetadataFeed.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the feed was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public MetadataFeed.Builder clearCreateTime()
       Output only. The time when the feed was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when the feed was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the feed was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface MetadataFeedOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time when the feed was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface MetadataFeedOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time when the feed was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface MetadataFeedOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public MetadataFeed.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the feed was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public MetadataFeed.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the feed was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public MetadataFeed.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the feed was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public MetadataFeed.Builder clearUpdateTime()
       Output only. The time when the feed was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time when the feed was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time when the feed was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface MetadataFeedOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: MetadataFeedOrBuilder
       Optional. User-defined labels.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface MetadataFeedOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. User-defined labels.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface MetadataFeedOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface MetadataFeedOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. User-defined labels.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface MetadataFeedOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. User-defined labels.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface MetadataFeedOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. User-defined labels.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface MetadataFeedOrBuilder
    • clearLabels

      public MetadataFeed.Builder clearLabels()
    • removeLabels

      public MetadataFeed.Builder removeLabels(String key)
       Optional. User-defined labels.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public MetadataFeed.Builder putLabels(String key, String value)
       Optional. User-defined labels.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public MetadataFeed.Builder putAllLabels(Map<String,String> values)
       Optional. User-defined labels.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • hasPubsubTopic

      public boolean hasPubsubTopic()
       Optional. The pubsub topic that you want the metadata feed messages to
       publish to. Please grant Dataplex service account the permission to
       publish messages to the topic. The service account is:
       service-{PROJECT_NUMBER}@gcp-sa-dataplex.iam.gserviceaccount.com.
       
      string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPubsubTopic in interface MetadataFeedOrBuilder
      Returns:
      Whether the pubsubTopic field is set.
    • getPubsubTopic

      public String getPubsubTopic()
       Optional. The pubsub topic that you want the metadata feed messages to
       publish to. Please grant Dataplex service account the permission to
       publish messages to the topic. The service account is:
       service-{PROJECT_NUMBER}@gcp-sa-dataplex.iam.gserviceaccount.com.
       
      string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPubsubTopic in interface MetadataFeedOrBuilder
      Returns:
      The pubsubTopic.
    • getPubsubTopicBytes

      public com.google.protobuf.ByteString getPubsubTopicBytes()
       Optional. The pubsub topic that you want the metadata feed messages to
       publish to. Please grant Dataplex service account the permission to
       publish messages to the topic. The service account is:
       service-{PROJECT_NUMBER}@gcp-sa-dataplex.iam.gserviceaccount.com.
       
      string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPubsubTopicBytes in interface MetadataFeedOrBuilder
      Returns:
      The bytes for pubsubTopic.
    • setPubsubTopic

      public MetadataFeed.Builder setPubsubTopic(String value)
       Optional. The pubsub topic that you want the metadata feed messages to
       publish to. Please grant Dataplex service account the permission to
       publish messages to the topic. The service account is:
       service-{PROJECT_NUMBER}@gcp-sa-dataplex.iam.gserviceaccount.com.
       
      string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pubsubTopic to set.
      Returns:
      This builder for chaining.
    • clearPubsubTopic

      public MetadataFeed.Builder clearPubsubTopic()
       Optional. The pubsub topic that you want the metadata feed messages to
       publish to. Please grant Dataplex service account the permission to
       publish messages to the topic. The service account is:
       service-{PROJECT_NUMBER}@gcp-sa-dataplex.iam.gserviceaccount.com.
       
      string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPubsubTopicBytes

      public MetadataFeed.Builder setPubsubTopicBytes(com.google.protobuf.ByteString value)
       Optional. The pubsub topic that you want the metadata feed messages to
       publish to. Please grant Dataplex service account the permission to
       publish messages to the topic. The service account is:
       service-{PROJECT_NUMBER}@gcp-sa-dataplex.iam.gserviceaccount.com.
       
      string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pubsubTopic to set.
      Returns:
      This builder for chaining.