Class BatchCreateTargetSitesRequest.Builder

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

public static final class BatchCreateTargetSitesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchCreateTargetSitesRequest.Builder> implements BatchCreateTargetSitesRequestOrBuilder
 Request message for
 [SiteSearchEngineService.BatchCreateTargetSites][google.cloud.discoveryengine.v1beta.SiteSearchEngineService.BatchCreateTargetSites]
 method.
 
Protobuf type google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesRequest
  • 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<BatchCreateTargetSitesRequest.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<BatchCreateTargetSitesRequest.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<BatchCreateTargetSitesRequest.Builder>
    • getDefaultInstanceForType

      public BatchCreateTargetSitesRequest 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 BatchCreateTargetSitesRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getParent()
       Required. The parent resource shared by all TargetSites being created.
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
       The parent field in the CreateBookRequest messages must either be empty or
       match this field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface BatchCreateTargetSitesRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource shared by all TargetSites being created.
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
       The parent field in the CreateBookRequest messages must either be empty or
       match this field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface BatchCreateTargetSitesRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The parent resource shared by all TargetSites being created.
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
       The parent field in the CreateBookRequest messages must either be empty or
       match this field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent resource shared by all TargetSites being created.
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
       The parent field in the CreateBookRequest messages must either be empty or
       match this field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchCreateTargetSitesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource shared by all TargetSites being created.
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
       The parent field in the CreateBookRequest messages must either be empty or
       match this field.
       
      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.
    • getRequestsList

      public List<CreateTargetSiteRequest> getRequestsList()
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsList in interface BatchCreateTargetSitesRequestOrBuilder
    • getRequestsCount

      public int getRequestsCount()
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsCount in interface BatchCreateTargetSitesRequestOrBuilder
    • getRequests

      public CreateTargetSiteRequest getRequests(int index)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequests in interface BatchCreateTargetSitesRequestOrBuilder
    • setRequests

      public BatchCreateTargetSitesRequest.Builder setRequests(int index, CreateTargetSiteRequest value)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRequests

      public BatchCreateTargetSitesRequest.Builder setRequests(int index, CreateTargetSiteRequest.Builder builderForValue)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchCreateTargetSitesRequest.Builder addRequests(int index, CreateTargetSiteRequest value)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchCreateTargetSitesRequest.Builder addRequests(int index, CreateTargetSiteRequest.Builder builderForValue)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllRequests

      public BatchCreateTargetSitesRequest.Builder addAllRequests(Iterable<? extends CreateTargetSiteRequest> values)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRequests

      public BatchCreateTargetSitesRequest.Builder clearRequests()
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeRequests

      public BatchCreateTargetSitesRequest.Builder removeRequests(int index)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilder

      public CreateTargetSiteRequest.Builder getRequestsBuilder(int index)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsOrBuilder

      public CreateTargetSiteRequestOrBuilder getRequestsOrBuilder(int index)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilder in interface BatchCreateTargetSitesRequestOrBuilder
    • getRequestsOrBuilderList

      public List<? extends CreateTargetSiteRequestOrBuilder> getRequestsOrBuilderList()
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilderList in interface BatchCreateTargetSitesRequestOrBuilder
    • addRequestsBuilder

      public CreateTargetSiteRequest.Builder addRequestsBuilder()
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequestsBuilder

      public CreateTargetSiteRequest.Builder addRequestsBuilder(int index)
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilderList

      public List<CreateTargetSiteRequest.Builder> getRequestsBuilderList()
       Required. The request message specifying the resources to create.
       A maximum of 20 TargetSites can be created in a batch.
       
      repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];