Class ListPackagesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListPackagesRequest.Builder>
com.google.devtools.artifactregistry.v1.ListPackagesRequest.Builder
All Implemented Interfaces:
ListPackagesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListPackagesRequest

public static final class ListPackagesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListPackagesRequest.Builder> implements ListPackagesRequestOrBuilder
 The request to list packages.
 
Protobuf type google.devtools.artifactregistry.v1.ListPackagesRequest
  • 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<ListPackagesRequest.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<ListPackagesRequest.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<ListPackagesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListPackagesRequest.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<ListPackagesRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The name of the parent resource whose packages will be listed.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ListPackagesRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the parent resource whose packages will be listed.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ListPackagesRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ListPackagesRequest.Builder setParent(String value)
       Required. The name of the parent resource whose packages will be listed.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ListPackagesRequest.Builder clearParent()
       Required. The name of the parent resource whose packages will be listed.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ListPackagesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the parent resource whose packages will be listed.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       The maximum number of packages to return. Maximum page size is 1,000.
       
      int32 page_size = 2;
      Specified by:
      getPageSize in interface ListPackagesRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListPackagesRequest.Builder setPageSize(int value)
       The maximum number of packages to return. Maximum page size is 1,000.
       
      int32 page_size = 2;
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListPackagesRequest.Builder clearPageSize()
       The maximum number of packages to return. Maximum page size is 1,000.
       
      int32 page_size = 2;
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       The next_page_token value returned from a previous list request, if any.
       
      string page_token = 3;
      Specified by:
      getPageToken in interface ListPackagesRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       The next_page_token value returned from a previous list request, if any.
       
      string page_token = 3;
      Specified by:
      getPageTokenBytes in interface ListPackagesRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListPackagesRequest.Builder setPageToken(String value)
       The next_page_token value returned from a previous list request, if any.
       
      string page_token = 3;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListPackagesRequest.Builder clearPageToken()
       The next_page_token value returned from a previous list request, if any.
       
      string page_token = 3;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListPackagesRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       The next_page_token value returned from a previous list request, if any.
       
      string page_token = 3;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getFilter

      public String getFilter()
       Optional. An expression for filtering the results of the request. Filter
       rules are case insensitive. The fields eligible for filtering are:
      
       * `name`
       * `annotations`
      
       Examples of using a filter:
      
       To filter the results of your request to packages with the name
       `my-package` in project `my-project` in the `us-central` region, in
       repository `my-repo`, append the following filter expression to your
       request:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
      
       You can also use wildcards to match any number of characters before or
       after the value:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
      
       To filter the results of your request to packages with the annotation
       key-value pair [`external_link`: `external_link_value`], append the
       following filter expression to your request":
      
       * `"annotations.external_link:external_link_value"`
      
       To filter the results just for a specific annotation key `external_link`,
       append the following filter expression to your request:
      
       * `"annotations.external_link"`
      
       If the annotation key or value contains special characters, you can escape
       them by surrounding the value with backticks. For example, to filter the
       results of your request to packages with the annotation key-value pair
       [`external.link`:`https://example.com/my-package`], append the following
       filter expression to your request:
      
       * `` "annotations.`external.link`:`https://example.com/my-package`" ``
      
       You can also filter with annotations with a wildcard to
       match any number of characters before or after the value:
      
       * `` "annotations.*_link:`*example.com*`" ``
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilter in interface ListPackagesRequestOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       Optional. An expression for filtering the results of the request. Filter
       rules are case insensitive. The fields eligible for filtering are:
      
       * `name`
       * `annotations`
      
       Examples of using a filter:
      
       To filter the results of your request to packages with the name
       `my-package` in project `my-project` in the `us-central` region, in
       repository `my-repo`, append the following filter expression to your
       request:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
      
       You can also use wildcards to match any number of characters before or
       after the value:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
      
       To filter the results of your request to packages with the annotation
       key-value pair [`external_link`: `external_link_value`], append the
       following filter expression to your request":
      
       * `"annotations.external_link:external_link_value"`
      
       To filter the results just for a specific annotation key `external_link`,
       append the following filter expression to your request:
      
       * `"annotations.external_link"`
      
       If the annotation key or value contains special characters, you can escape
       them by surrounding the value with backticks. For example, to filter the
       results of your request to packages with the annotation key-value pair
       [`external.link`:`https://example.com/my-package`], append the following
       filter expression to your request:
      
       * `` "annotations.`external.link`:`https://example.com/my-package`" ``
      
       You can also filter with annotations with a wildcard to
       match any number of characters before or after the value:
      
       * `` "annotations.*_link:`*example.com*`" ``
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterBytes in interface ListPackagesRequestOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public ListPackagesRequest.Builder setFilter(String value)
       Optional. An expression for filtering the results of the request. Filter
       rules are case insensitive. The fields eligible for filtering are:
      
       * `name`
       * `annotations`
      
       Examples of using a filter:
      
       To filter the results of your request to packages with the name
       `my-package` in project `my-project` in the `us-central` region, in
       repository `my-repo`, append the following filter expression to your
       request:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
      
       You can also use wildcards to match any number of characters before or
       after the value:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
      
       To filter the results of your request to packages with the annotation
       key-value pair [`external_link`: `external_link_value`], append the
       following filter expression to your request":
      
       * `"annotations.external_link:external_link_value"`
      
       To filter the results just for a specific annotation key `external_link`,
       append the following filter expression to your request:
      
       * `"annotations.external_link"`
      
       If the annotation key or value contains special characters, you can escape
       them by surrounding the value with backticks. For example, to filter the
       results of your request to packages with the annotation key-value pair
       [`external.link`:`https://example.com/my-package`], append the following
       filter expression to your request:
      
       * `` "annotations.`external.link`:`https://example.com/my-package`" ``
      
       You can also filter with annotations with a wildcard to
       match any number of characters before or after the value:
      
       * `` "annotations.*_link:`*example.com*`" ``
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public ListPackagesRequest.Builder clearFilter()
       Optional. An expression for filtering the results of the request. Filter
       rules are case insensitive. The fields eligible for filtering are:
      
       * `name`
       * `annotations`
      
       Examples of using a filter:
      
       To filter the results of your request to packages with the name
       `my-package` in project `my-project` in the `us-central` region, in
       repository `my-repo`, append the following filter expression to your
       request:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
      
       You can also use wildcards to match any number of characters before or
       after the value:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
      
       To filter the results of your request to packages with the annotation
       key-value pair [`external_link`: `external_link_value`], append the
       following filter expression to your request":
      
       * `"annotations.external_link:external_link_value"`
      
       To filter the results just for a specific annotation key `external_link`,
       append the following filter expression to your request:
      
       * `"annotations.external_link"`
      
       If the annotation key or value contains special characters, you can escape
       them by surrounding the value with backticks. For example, to filter the
       results of your request to packages with the annotation key-value pair
       [`external.link`:`https://example.com/my-package`], append the following
       filter expression to your request:
      
       * `` "annotations.`external.link`:`https://example.com/my-package`" ``
      
       You can also filter with annotations with a wildcard to
       match any number of characters before or after the value:
      
       * `` "annotations.*_link:`*example.com*`" ``
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ListPackagesRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
       Optional. An expression for filtering the results of the request. Filter
       rules are case insensitive. The fields eligible for filtering are:
      
       * `name`
       * `annotations`
      
       Examples of using a filter:
      
       To filter the results of your request to packages with the name
       `my-package` in project `my-project` in the `us-central` region, in
       repository `my-repo`, append the following filter expression to your
       request:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
      
       You can also use wildcards to match any number of characters before or
       after the value:
      
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
       * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
      
       To filter the results of your request to packages with the annotation
       key-value pair [`external_link`: `external_link_value`], append the
       following filter expression to your request":
      
       * `"annotations.external_link:external_link_value"`
      
       To filter the results just for a specific annotation key `external_link`,
       append the following filter expression to your request:
      
       * `"annotations.external_link"`
      
       If the annotation key or value contains special characters, you can escape
       them by surrounding the value with backticks. For example, to filter the
       results of your request to packages with the annotation key-value pair
       [`external.link`:`https://example.com/my-package`], append the following
       filter expression to your request:
      
       * `` "annotations.`external.link`:`https://example.com/my-package`" ``
      
       You can also filter with annotations with a wildcard to
       match any number of characters before or after the value:
      
       * `` "annotations.*_link:`*example.com*`" ``
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • getOrderBy

      public String getOrderBy()
       Optional. The field to order the results by.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrderBy in interface ListPackagesRequestOrBuilder
      Returns:
      The orderBy.
    • getOrderByBytes

      public com.google.protobuf.ByteString getOrderByBytes()
       Optional. The field to order the results by.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrderByBytes in interface ListPackagesRequestOrBuilder
      Returns:
      The bytes for orderBy.
    • setOrderBy

      public ListPackagesRequest.Builder setOrderBy(String value)
       Optional. The field to order the results by.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The orderBy to set.
      Returns:
      This builder for chaining.
    • clearOrderBy

      public ListPackagesRequest.Builder clearOrderBy()
       Optional. The field to order the results by.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOrderByBytes

      public ListPackagesRequest.Builder setOrderByBytes(com.google.protobuf.ByteString value)
       Optional. The field to order the results by.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for orderBy to set.
      Returns:
      This builder for chaining.