Class RecrawlUrisMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RecrawlUrisMetadata.Builder>
com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata.Builder
All Implemented Interfaces:
RecrawlUrisMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RecrawlUrisMetadata

public static final class RecrawlUrisMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<RecrawlUrisMetadata.Builder> implements RecrawlUrisMetadataOrBuilder
 Metadata related to the progress of the
 [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris]
 operation. This will be returned by the google.longrunning.Operation.metadata
 field.
 
Protobuf type google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata
  • 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<RecrawlUrisMetadata.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<RecrawlUrisMetadata.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<RecrawlUrisMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RecrawlUrisMetadata.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<RecrawlUrisMetadata.Builder>
      Throws:
      IOException
    • hasCreateTime

      public boolean hasCreateTime()
       Operation create time.
       
      .google.protobuf.Timestamp create_time = 1;
      Specified by:
      hasCreateTime in interface RecrawlUrisMetadataOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Operation create time.
       
      .google.protobuf.Timestamp create_time = 1;
      Specified by:
      getCreateTime in interface RecrawlUrisMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public RecrawlUrisMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Operation create time.
       
      .google.protobuf.Timestamp create_time = 1;
    • setCreateTime

      public RecrawlUrisMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Operation create time.
       
      .google.protobuf.Timestamp create_time = 1;
    • mergeCreateTime

      public RecrawlUrisMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Operation create time.
       
      .google.protobuf.Timestamp create_time = 1;
    • clearCreateTime

      public RecrawlUrisMetadata.Builder clearCreateTime()
       Operation create time.
       
      .google.protobuf.Timestamp create_time = 1;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Operation create time.
       
      .google.protobuf.Timestamp create_time = 1;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Operation create time.
       
      .google.protobuf.Timestamp create_time = 1;
      Specified by:
      getCreateTimeOrBuilder in interface RecrawlUrisMetadataOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Operation last update time. If the operation is done, this is also the
       finish time.
       
      .google.protobuf.Timestamp update_time = 2;
      Specified by:
      hasUpdateTime in interface RecrawlUrisMetadataOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Operation last update time. If the operation is done, this is also the
       finish time.
       
      .google.protobuf.Timestamp update_time = 2;
      Specified by:
      getUpdateTime in interface RecrawlUrisMetadataOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public RecrawlUrisMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Operation last update time. If the operation is done, this is also the
       finish time.
       
      .google.protobuf.Timestamp update_time = 2;
    • setUpdateTime

      public RecrawlUrisMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Operation last update time. If the operation is done, this is also the
       finish time.
       
      .google.protobuf.Timestamp update_time = 2;
    • mergeUpdateTime

      public RecrawlUrisMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Operation last update time. If the operation is done, this is also the
       finish time.
       
      .google.protobuf.Timestamp update_time = 2;
    • clearUpdateTime

      public RecrawlUrisMetadata.Builder clearUpdateTime()
       Operation last update time. If the operation is done, this is also the
       finish time.
       
      .google.protobuf.Timestamp update_time = 2;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Operation last update time. If the operation is done, this is also the
       finish time.
       
      .google.protobuf.Timestamp update_time = 2;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Operation last update time. If the operation is done, this is also the
       finish time.
       
      .google.protobuf.Timestamp update_time = 2;
      Specified by:
      getUpdateTimeOrBuilder in interface RecrawlUrisMetadataOrBuilder
    • getInvalidUrisList

      public com.google.protobuf.ProtocolStringList getInvalidUrisList()
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Specified by:
      getInvalidUrisList in interface RecrawlUrisMetadataOrBuilder
      Returns:
      A list containing the invalidUris.
    • getInvalidUrisCount

      public int getInvalidUrisCount()
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Specified by:
      getInvalidUrisCount in interface RecrawlUrisMetadataOrBuilder
      Returns:
      The count of invalidUris.
    • getInvalidUris

      public String getInvalidUris(int index)
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Specified by:
      getInvalidUris in interface RecrawlUrisMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The invalidUris at the given index.
    • getInvalidUrisBytes

      public com.google.protobuf.ByteString getInvalidUrisBytes(int index)
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Specified by:
      getInvalidUrisBytes in interface RecrawlUrisMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the invalidUris at the given index.
    • setInvalidUris

      public RecrawlUrisMetadata.Builder setInvalidUris(int index, String value)
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Parameters:
      index - The index to set the value at.
      value - The invalidUris to set.
      Returns:
      This builder for chaining.
    • addInvalidUris

      public RecrawlUrisMetadata.Builder addInvalidUris(String value)
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Parameters:
      value - The invalidUris to add.
      Returns:
      This builder for chaining.
    • addAllInvalidUris

      public RecrawlUrisMetadata.Builder addAllInvalidUris(Iterable<String> values)
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Parameters:
      values - The invalidUris to add.
      Returns:
      This builder for chaining.
    • clearInvalidUris

      public RecrawlUrisMetadata.Builder clearInvalidUris()
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Returns:
      This builder for chaining.
    • addInvalidUrisBytes

      public RecrawlUrisMetadata.Builder addInvalidUrisBytes(com.google.protobuf.ByteString value)
       Unique URIs in the request that don't match any TargetSite in the
       DataStore, only match TargetSites that haven't been fully indexed, or match
       a TargetSite with type EXCLUDE.
       
      repeated string invalid_uris = 3;
      Parameters:
      value - The bytes of the invalidUris to add.
      Returns:
      This builder for chaining.
    • getValidUrisCount

      public int getValidUrisCount()
       Total number of unique URIs in the request that are not in invalid_uris.
       
      int32 valid_uris_count = 4;
      Specified by:
      getValidUrisCount in interface RecrawlUrisMetadataOrBuilder
      Returns:
      The validUrisCount.
    • setValidUrisCount

      public RecrawlUrisMetadata.Builder setValidUrisCount(int value)
       Total number of unique URIs in the request that are not in invalid_uris.
       
      int32 valid_uris_count = 4;
      Parameters:
      value - The validUrisCount to set.
      Returns:
      This builder for chaining.
    • clearValidUrisCount

      public RecrawlUrisMetadata.Builder clearValidUrisCount()
       Total number of unique URIs in the request that are not in invalid_uris.
       
      int32 valid_uris_count = 4;
      Returns:
      This builder for chaining.
    • getSuccessCount

      public int getSuccessCount()
       Total number of URIs that have been crawled so far.
       
      int32 success_count = 5;
      Specified by:
      getSuccessCount in interface RecrawlUrisMetadataOrBuilder
      Returns:
      The successCount.
    • setSuccessCount

      public RecrawlUrisMetadata.Builder setSuccessCount(int value)
       Total number of URIs that have been crawled so far.
       
      int32 success_count = 5;
      Parameters:
      value - The successCount to set.
      Returns:
      This builder for chaining.
    • clearSuccessCount

      public RecrawlUrisMetadata.Builder clearSuccessCount()
       Total number of URIs that have been crawled so far.
       
      int32 success_count = 5;
      Returns:
      This builder for chaining.
    • getPendingCount

      public int getPendingCount()
       Total number of URIs that have yet to be crawled.
       
      int32 pending_count = 6;
      Specified by:
      getPendingCount in interface RecrawlUrisMetadataOrBuilder
      Returns:
      The pendingCount.
    • setPendingCount

      public RecrawlUrisMetadata.Builder setPendingCount(int value)
       Total number of URIs that have yet to be crawled.
       
      int32 pending_count = 6;
      Parameters:
      value - The pendingCount to set.
      Returns:
      This builder for chaining.
    • clearPendingCount

      public RecrawlUrisMetadata.Builder clearPendingCount()
       Total number of URIs that have yet to be crawled.
       
      int32 pending_count = 6;
      Returns:
      This builder for chaining.
    • getQuotaExceededCount

      public int getQuotaExceededCount()
       Total number of URIs that were rejected due to insufficient indexing
       resources.
       
      int32 quota_exceeded_count = 7;
      Specified by:
      getQuotaExceededCount in interface RecrawlUrisMetadataOrBuilder
      Returns:
      The quotaExceededCount.
    • setQuotaExceededCount

      public RecrawlUrisMetadata.Builder setQuotaExceededCount(int value)
       Total number of URIs that were rejected due to insufficient indexing
       resources.
       
      int32 quota_exceeded_count = 7;
      Parameters:
      value - The quotaExceededCount to set.
      Returns:
      This builder for chaining.
    • clearQuotaExceededCount

      public RecrawlUrisMetadata.Builder clearQuotaExceededCount()
       Total number of URIs that were rejected due to insufficient indexing
       resources.
       
      int32 quota_exceeded_count = 7;
      Returns:
      This builder for chaining.