Class SearchCatalogResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchCatalogResult.Builder>
com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder
All Implemented Interfaces:
SearchCatalogResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchCatalogResult

public static final class SearchCatalogResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchCatalogResult.Builder> implements SearchCatalogResultOrBuilder
 A result that appears in the response of a search request. Each result
 captures details of one entry that matches the search.
 
Protobuf type google.cloud.datacatalog.v1beta1.SearchCatalogResult
  • 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<SearchCatalogResult.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<SearchCatalogResult.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<SearchCatalogResult.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SearchCatalogResult.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<SearchCatalogResult.Builder>
      Throws:
      IOException
    • getSearchResultTypeValue

      public int getSearchResultTypeValue()
       Type of the search result. This field can be used to determine which Get
       method to call to fetch the full resource.
       
      .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1;
      Specified by:
      getSearchResultTypeValue in interface SearchCatalogResultOrBuilder
      Returns:
      The enum numeric value on the wire for searchResultType.
    • setSearchResultTypeValue

      public SearchCatalogResult.Builder setSearchResultTypeValue(int value)
       Type of the search result. This field can be used to determine which Get
       method to call to fetch the full resource.
       
      .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1;
      Parameters:
      value - The enum numeric value on the wire for searchResultType to set.
      Returns:
      This builder for chaining.
    • getSearchResultType

      public SearchResultType getSearchResultType()
       Type of the search result. This field can be used to determine which Get
       method to call to fetch the full resource.
       
      .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1;
      Specified by:
      getSearchResultType in interface SearchCatalogResultOrBuilder
      Returns:
      The searchResultType.
    • setSearchResultType

      public SearchCatalogResult.Builder setSearchResultType(SearchResultType value)
       Type of the search result. This field can be used to determine which Get
       method to call to fetch the full resource.
       
      .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1;
      Parameters:
      value - The searchResultType to set.
      Returns:
      This builder for chaining.
    • clearSearchResultType

      public SearchCatalogResult.Builder clearSearchResultType()
       Type of the search result. This field can be used to determine which Get
       method to call to fetch the full resource.
       
      .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1;
      Returns:
      This builder for chaining.
    • getSearchResultSubtype

      public String getSearchResultSubtype()
       Sub-type of the search result. This is a dot-delimited description of the
       resource's full type, and is the same as the value callers would provide in
       the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
       `tagTemplate`.
       
      string search_result_subtype = 2;
      Specified by:
      getSearchResultSubtype in interface SearchCatalogResultOrBuilder
      Returns:
      The searchResultSubtype.
    • getSearchResultSubtypeBytes

      public com.google.protobuf.ByteString getSearchResultSubtypeBytes()
       Sub-type of the search result. This is a dot-delimited description of the
       resource's full type, and is the same as the value callers would provide in
       the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
       `tagTemplate`.
       
      string search_result_subtype = 2;
      Specified by:
      getSearchResultSubtypeBytes in interface SearchCatalogResultOrBuilder
      Returns:
      The bytes for searchResultSubtype.
    • setSearchResultSubtype

      public SearchCatalogResult.Builder setSearchResultSubtype(String value)
       Sub-type of the search result. This is a dot-delimited description of the
       resource's full type, and is the same as the value callers would provide in
       the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
       `tagTemplate`.
       
      string search_result_subtype = 2;
      Parameters:
      value - The searchResultSubtype to set.
      Returns:
      This builder for chaining.
    • clearSearchResultSubtype

      public SearchCatalogResult.Builder clearSearchResultSubtype()
       Sub-type of the search result. This is a dot-delimited description of the
       resource's full type, and is the same as the value callers would provide in
       the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
       `tagTemplate`.
       
      string search_result_subtype = 2;
      Returns:
      This builder for chaining.
    • setSearchResultSubtypeBytes

      public SearchCatalogResult.Builder setSearchResultSubtypeBytes(com.google.protobuf.ByteString value)
       Sub-type of the search result. This is a dot-delimited description of the
       resource's full type, and is the same as the value callers would provide in
       the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
       `tagTemplate`.
       
      string search_result_subtype = 2;
      Parameters:
      value - The bytes for searchResultSubtype to set.
      Returns:
      This builder for chaining.
    • getRelativeResourceName

      public String getRelativeResourceName()
       The relative resource name of the resource in URL format.
       Examples:
      
       * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
       * `projects/{project_id}/tagTemplates/{tag_template_id}`
       
      string relative_resource_name = 3;
      Specified by:
      getRelativeResourceName in interface SearchCatalogResultOrBuilder
      Returns:
      The relativeResourceName.
    • getRelativeResourceNameBytes

      public com.google.protobuf.ByteString getRelativeResourceNameBytes()
       The relative resource name of the resource in URL format.
       Examples:
      
       * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
       * `projects/{project_id}/tagTemplates/{tag_template_id}`
       
      string relative_resource_name = 3;
      Specified by:
      getRelativeResourceNameBytes in interface SearchCatalogResultOrBuilder
      Returns:
      The bytes for relativeResourceName.
    • setRelativeResourceName

      public SearchCatalogResult.Builder setRelativeResourceName(String value)
       The relative resource name of the resource in URL format.
       Examples:
      
       * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
       * `projects/{project_id}/tagTemplates/{tag_template_id}`
       
      string relative_resource_name = 3;
      Parameters:
      value - The relativeResourceName to set.
      Returns:
      This builder for chaining.
    • clearRelativeResourceName

      public SearchCatalogResult.Builder clearRelativeResourceName()
       The relative resource name of the resource in URL format.
       Examples:
      
       * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
       * `projects/{project_id}/tagTemplates/{tag_template_id}`
       
      string relative_resource_name = 3;
      Returns:
      This builder for chaining.
    • setRelativeResourceNameBytes

      public SearchCatalogResult.Builder setRelativeResourceNameBytes(com.google.protobuf.ByteString value)
       The relative resource name of the resource in URL format.
       Examples:
      
       * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
       * `projects/{project_id}/tagTemplates/{tag_template_id}`
       
      string relative_resource_name = 3;
      Parameters:
      value - The bytes for relativeResourceName to set.
      Returns:
      This builder for chaining.
    • getLinkedResource

      public String getLinkedResource()
       The full name of the cloud resource the entry belongs to. See:
       https://cloud.google.com/apis/design/resource_names#full_resource_name.
       Example:
      
       * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
       
      string linked_resource = 4;
      Specified by:
      getLinkedResource in interface SearchCatalogResultOrBuilder
      Returns:
      The linkedResource.
    • getLinkedResourceBytes

      public com.google.protobuf.ByteString getLinkedResourceBytes()
       The full name of the cloud resource the entry belongs to. See:
       https://cloud.google.com/apis/design/resource_names#full_resource_name.
       Example:
      
       * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
       
      string linked_resource = 4;
      Specified by:
      getLinkedResourceBytes in interface SearchCatalogResultOrBuilder
      Returns:
      The bytes for linkedResource.
    • setLinkedResource

      public SearchCatalogResult.Builder setLinkedResource(String value)
       The full name of the cloud resource the entry belongs to. See:
       https://cloud.google.com/apis/design/resource_names#full_resource_name.
       Example:
      
       * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
       
      string linked_resource = 4;
      Parameters:
      value - The linkedResource to set.
      Returns:
      This builder for chaining.
    • clearLinkedResource

      public SearchCatalogResult.Builder clearLinkedResource()
       The full name of the cloud resource the entry belongs to. See:
       https://cloud.google.com/apis/design/resource_names#full_resource_name.
       Example:
      
       * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
       
      string linked_resource = 4;
      Returns:
      This builder for chaining.
    • setLinkedResourceBytes

      public SearchCatalogResult.Builder setLinkedResourceBytes(com.google.protobuf.ByteString value)
       The full name of the cloud resource the entry belongs to. See:
       https://cloud.google.com/apis/design/resource_names#full_resource_name.
       Example:
      
       * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
       
      string linked_resource = 4;
      Parameters:
      value - The bytes for linkedResource to set.
      Returns:
      This builder for chaining.
    • hasModifyTime

      public boolean hasModifyTime()
       Last-modified timestamp of the entry from the managing system.
       
      .google.protobuf.Timestamp modify_time = 7;
      Specified by:
      hasModifyTime in interface SearchCatalogResultOrBuilder
      Returns:
      Whether the modifyTime field is set.
    • getModifyTime

      public com.google.protobuf.Timestamp getModifyTime()
       Last-modified timestamp of the entry from the managing system.
       
      .google.protobuf.Timestamp modify_time = 7;
      Specified by:
      getModifyTime in interface SearchCatalogResultOrBuilder
      Returns:
      The modifyTime.
    • setModifyTime

      public SearchCatalogResult.Builder setModifyTime(com.google.protobuf.Timestamp value)
       Last-modified timestamp of the entry from the managing system.
       
      .google.protobuf.Timestamp modify_time = 7;
    • setModifyTime

      public SearchCatalogResult.Builder setModifyTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Last-modified timestamp of the entry from the managing system.
       
      .google.protobuf.Timestamp modify_time = 7;
    • mergeModifyTime

      public SearchCatalogResult.Builder mergeModifyTime(com.google.protobuf.Timestamp value)
       Last-modified timestamp of the entry from the managing system.
       
      .google.protobuf.Timestamp modify_time = 7;
    • clearModifyTime

      public SearchCatalogResult.Builder clearModifyTime()
       Last-modified timestamp of the entry from the managing system.
       
      .google.protobuf.Timestamp modify_time = 7;
    • getModifyTimeBuilder

      public com.google.protobuf.Timestamp.Builder getModifyTimeBuilder()
       Last-modified timestamp of the entry from the managing system.
       
      .google.protobuf.Timestamp modify_time = 7;
    • getModifyTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getModifyTimeOrBuilder()
       Last-modified timestamp of the entry from the managing system.
       
      .google.protobuf.Timestamp modify_time = 7;
      Specified by:
      getModifyTimeOrBuilder in interface SearchCatalogResultOrBuilder