Class QueryProductsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryProductsRequest.Builder>
com.google.cloud.databasecenter.v1beta.QueryProductsRequest.Builder
All Implemented Interfaces:
QueryProductsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
QueryProductsRequest

public static final class QueryProductsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<QueryProductsRequest.Builder> implements QueryProductsRequestOrBuilder
 QueryProductsRequest is the request to get a list of products.
 
Protobuf type google.cloud.databasecenter.v1beta.QueryProductsRequest
  • 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<QueryProductsRequest.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<QueryProductsRequest.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<QueryProductsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. Parent can be a project, a folder, or an organization.
      
       The allowed values are:
      
       * projects/{PROJECT_ID}/locations/{LOCATION}
       (e.g.,"projects/foo-bar/locations/us-central1")
       * projects/{PROJECT_NUMBER}/locations/{LOCATION}
       (e.g.,"projects/12345678/locations/us-central1")
       * folders/{FOLDER_NUMBER}/locations/{LOCATION}
       (e.g.,"folders/1234567/locations/us-central1")
       * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION}
       (e.g.,"organizations/123456/locations/us-central1")
       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParent in interface QueryProductsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Parent can be a project, a folder, or an organization.
      
       The allowed values are:
      
       * projects/{PROJECT_ID}/locations/{LOCATION}
       (e.g.,"projects/foo-bar/locations/us-central1")
       * projects/{PROJECT_NUMBER}/locations/{LOCATION}
       (e.g.,"projects/12345678/locations/us-central1")
       * folders/{FOLDER_NUMBER}/locations/{LOCATION}
       (e.g.,"folders/1234567/locations/us-central1")
       * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION}
       (e.g.,"organizations/123456/locations/us-central1")
       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentBytes in interface QueryProductsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public QueryProductsRequest.Builder setParent(String value)
       Required. Parent can be a project, a folder, or an organization.
      
       The allowed values are:
      
       * projects/{PROJECT_ID}/locations/{LOCATION}
       (e.g.,"projects/foo-bar/locations/us-central1")
       * projects/{PROJECT_NUMBER}/locations/{LOCATION}
       (e.g.,"projects/12345678/locations/us-central1")
       * folders/{FOLDER_NUMBER}/locations/{LOCATION}
       (e.g.,"folders/1234567/locations/us-central1")
       * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION}
       (e.g.,"organizations/123456/locations/us-central1")
       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public QueryProductsRequest.Builder clearParent()
       Required. Parent can be a project, a folder, or an organization.
      
       The allowed values are:
      
       * projects/{PROJECT_ID}/locations/{LOCATION}
       (e.g.,"projects/foo-bar/locations/us-central1")
       * projects/{PROJECT_NUMBER}/locations/{LOCATION}
       (e.g.,"projects/12345678/locations/us-central1")
       * folders/{FOLDER_NUMBER}/locations/{LOCATION}
       (e.g.,"folders/1234567/locations/us-central1")
       * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION}
       (e.g.,"organizations/123456/locations/us-central1")
       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentBytes

      public QueryProductsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Parent can be a project, a folder, or an organization.
      
       The allowed values are:
      
       * projects/{PROJECT_ID}/locations/{LOCATION}
       (e.g.,"projects/foo-bar/locations/us-central1")
       * projects/{PROJECT_NUMBER}/locations/{LOCATION}
       (e.g.,"projects/12345678/locations/us-central1")
       * folders/{FOLDER_NUMBER}/locations/{LOCATION}
       (e.g.,"folders/1234567/locations/us-central1")
       * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION}
       (e.g.,"organizations/123456/locations/us-central1")
       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Optional. If unspecified, at most 50 products will be returned.
       The maximum value is 1000; values above 1000 will be coerced to 1000.
       
      int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface QueryProductsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public QueryProductsRequest.Builder setPageSize(int value)
       Optional. If unspecified, at most 50 products will be returned.
       The maximum value is 1000; values above 1000 will be coerced to 1000.
       
      int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public QueryProductsRequest.Builder clearPageSize()
       Optional. If unspecified, at most 50 products will be returned.
       The maximum value is 1000; values above 1000 will be coerced to 1000.
       
      int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Optional. A page token, received from a previous `ListLocations` call.
       Provide this to retrieve the subsequent page.
       All other parameters except page size should match the call that provided
       the page page token.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageToken in interface QueryProductsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional. A page token, received from a previous `ListLocations` call.
       Provide this to retrieve the subsequent page.
       All other parameters except page size should match the call that provided
       the page page token.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageTokenBytes in interface QueryProductsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public QueryProductsRequest.Builder setPageToken(String value)
       Optional. A page token, received from a previous `ListLocations` call.
       Provide this to retrieve the subsequent page.
       All other parameters except page size should match the call that provided
       the page page token.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public QueryProductsRequest.Builder clearPageToken()
       Optional. A page token, received from a previous `ListLocations` call.
       Provide this to retrieve the subsequent page.
       All other parameters except page size should match the call that provided
       the page page token.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public QueryProductsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. A page token, received from a previous `ListLocations` call.
       Provide this to retrieve the subsequent page.
       All other parameters except page size should match the call that provided
       the page page token.
       
      string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.