Class SearchOrganizationsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchOrganizationsRequest.Builder>
com.google.cloud.resourcemanager.v3.SearchOrganizationsRequest.Builder
All Implemented Interfaces:
SearchOrganizationsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchOrganizationsRequest

public static final class SearchOrganizationsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchOrganizationsRequest.Builder> implements SearchOrganizationsRequestOrBuilder
 The request sent to the `SearchOrganizations` method.
 
Protobuf type google.cloud.resourcemanager.v3.SearchOrganizationsRequest
  • 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<SearchOrganizationsRequest.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<SearchOrganizationsRequest.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<SearchOrganizationsRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public SearchOrganizationsRequest.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<SearchOrganizationsRequest.Builder>
      Throws:
      IOException
    • getPageSize

      public int getPageSize()
       Optional. The maximum number of organizations to return in the response.
       The server can return fewer organizations than requested. If unspecified,
       server picks an appropriate default.
       
      int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface SearchOrganizationsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public SearchOrganizationsRequest.Builder setPageSize(int value)
       Optional. The maximum number of organizations to return in the response.
       The server can return fewer organizations than requested. If unspecified,
       server picks an appropriate default.
       
      int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public SearchOrganizationsRequest.Builder clearPageSize()
       Optional. The maximum number of organizations to return in the response.
       The server can return fewer organizations than requested. If unspecified,
       server picks an appropriate default.
       
      int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Optional. A pagination token returned from a previous call to
       `SearchOrganizations` that indicates from where listing should continue.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageToken in interface SearchOrganizationsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional. A pagination token returned from a previous call to
       `SearchOrganizations` that indicates from where listing should continue.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageTokenBytes in interface SearchOrganizationsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public SearchOrganizationsRequest.Builder setPageToken(String value)
       Optional. A pagination token returned from a previous call to
       `SearchOrganizations` that indicates from where listing should continue.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public SearchOrganizationsRequest.Builder clearPageToken()
       Optional. A pagination token returned from a previous call to
       `SearchOrganizations` that indicates from where listing should continue.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public SearchOrganizationsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. A pagination token returned from a previous call to
       `SearchOrganizations` that indicates from where listing should continue.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getQuery

      public String getQuery()
       Optional. An optional query string used to filter the Organizations to
       return in the response. Query rules are case-insensitive.
      
      
       ```
       | Field            | Description                                |
       |------------------|--------------------------------------------|
       | directoryCustomerId, owner.directoryCustomerId | Filters by directory
       customer id. |
       | domain           | Filters by domain.                         |
       ```
      
       Organizations may be queried by `directoryCustomerId` or by
       `domain`, where the domain is a G Suite domain, for example:
      
       * Query `directorycustomerid:123456789` returns Organization
       resources with `owner.directory_customer_id` equal to `123456789`.
       * Query `domain:google.com` returns Organization resources corresponding
       to the domain `google.com`.
       
      string query = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuery in interface SearchOrganizationsRequestOrBuilder
      Returns:
      The query.
    • getQueryBytes

      public com.google.protobuf.ByteString getQueryBytes()
       Optional. An optional query string used to filter the Organizations to
       return in the response. Query rules are case-insensitive.
      
      
       ```
       | Field            | Description                                |
       |------------------|--------------------------------------------|
       | directoryCustomerId, owner.directoryCustomerId | Filters by directory
       customer id. |
       | domain           | Filters by domain.                         |
       ```
      
       Organizations may be queried by `directoryCustomerId` or by
       `domain`, where the domain is a G Suite domain, for example:
      
       * Query `directorycustomerid:123456789` returns Organization
       resources with `owner.directory_customer_id` equal to `123456789`.
       * Query `domain:google.com` returns Organization resources corresponding
       to the domain `google.com`.
       
      string query = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQueryBytes in interface SearchOrganizationsRequestOrBuilder
      Returns:
      The bytes for query.
    • setQuery

      public SearchOrganizationsRequest.Builder setQuery(String value)
       Optional. An optional query string used to filter the Organizations to
       return in the response. Query rules are case-insensitive.
      
      
       ```
       | Field            | Description                                |
       |------------------|--------------------------------------------|
       | directoryCustomerId, owner.directoryCustomerId | Filters by directory
       customer id. |
       | domain           | Filters by domain.                         |
       ```
      
       Organizations may be queried by `directoryCustomerId` or by
       `domain`, where the domain is a G Suite domain, for example:
      
       * Query `directorycustomerid:123456789` returns Organization
       resources with `owner.directory_customer_id` equal to `123456789`.
       * Query `domain:google.com` returns Organization resources corresponding
       to the domain `google.com`.
       
      string query = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The query to set.
      Returns:
      This builder for chaining.
    • clearQuery

       Optional. An optional query string used to filter the Organizations to
       return in the response. Query rules are case-insensitive.
      
      
       ```
       | Field            | Description                                |
       |------------------|--------------------------------------------|
       | directoryCustomerId, owner.directoryCustomerId | Filters by directory
       customer id. |
       | domain           | Filters by domain.                         |
       ```
      
       Organizations may be queried by `directoryCustomerId` or by
       `domain`, where the domain is a G Suite domain, for example:
      
       * Query `directorycustomerid:123456789` returns Organization
       resources with `owner.directory_customer_id` equal to `123456789`.
       * Query `domain:google.com` returns Organization resources corresponding
       to the domain `google.com`.
       
      string query = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setQueryBytes

      public SearchOrganizationsRequest.Builder setQueryBytes(com.google.protobuf.ByteString value)
       Optional. An optional query string used to filter the Organizations to
       return in the response. Query rules are case-insensitive.
      
      
       ```
       | Field            | Description                                |
       |------------------|--------------------------------------------|
       | directoryCustomerId, owner.directoryCustomerId | Filters by directory
       customer id. |
       | domain           | Filters by domain.                         |
       ```
      
       Organizations may be queried by `directoryCustomerId` or by
       `domain`, where the domain is a G Suite domain, for example:
      
       * Query `directorycustomerid:123456789` returns Organization
       resources with `owner.directory_customer_id` equal to `123456789`.
       * Query `domain:google.com` returns Organization resources corresponding
       to the domain `google.com`.
       
      string query = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for query to set.
      Returns:
      This builder for chaining.