Class UpdateWorkerPoolRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpdateWorkerPoolRequest.Builder>
com.google.cloudbuild.v1.UpdateWorkerPoolRequest.Builder
All Implemented Interfaces:
UpdateWorkerPoolRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UpdateWorkerPoolRequest

public static final class UpdateWorkerPoolRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateWorkerPoolRequest.Builder> implements UpdateWorkerPoolRequestOrBuilder
 Request to update a `WorkerPool`.
 
Protobuf type google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest
  • 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<UpdateWorkerPoolRequest.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<UpdateWorkerPoolRequest.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<UpdateWorkerPoolRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpdateWorkerPoolRequest.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<UpdateWorkerPoolRequest.Builder>
      Throws:
      IOException
    • hasWorkerPool

      public boolean hasWorkerPool()
       Required. The `WorkerPool` to update.
      
       The `name` field is used to identify the `WorkerPool` to update.
       Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
       
      .google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasWorkerPool in interface UpdateWorkerPoolRequestOrBuilder
      Returns:
      Whether the workerPool field is set.
    • getWorkerPool

      public WorkerPool getWorkerPool()
       Required. The `WorkerPool` to update.
      
       The `name` field is used to identify the `WorkerPool` to update.
       Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
       
      .google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkerPool in interface UpdateWorkerPoolRequestOrBuilder
      Returns:
      The workerPool.
    • setWorkerPool

      public UpdateWorkerPoolRequest.Builder setWorkerPool(WorkerPool value)
       Required. The `WorkerPool` to update.
      
       The `name` field is used to identify the `WorkerPool` to update.
       Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
       
      .google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];
    • setWorkerPool

      public UpdateWorkerPoolRequest.Builder setWorkerPool(WorkerPool.Builder builderForValue)
       Required. The `WorkerPool` to update.
      
       The `name` field is used to identify the `WorkerPool` to update.
       Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
       
      .google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeWorkerPool

      public UpdateWorkerPoolRequest.Builder mergeWorkerPool(WorkerPool value)
       Required. The `WorkerPool` to update.
      
       The `name` field is used to identify the `WorkerPool` to update.
       Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
       
      .google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearWorkerPool

      public UpdateWorkerPoolRequest.Builder clearWorkerPool()
       Required. The `WorkerPool` to update.
      
       The `name` field is used to identify the `WorkerPool` to update.
       Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
       
      .google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];
    • getWorkerPoolBuilder

      public WorkerPool.Builder getWorkerPoolBuilder()
       Required. The `WorkerPool` to update.
      
       The `name` field is used to identify the `WorkerPool` to update.
       Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
       
      .google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];
    • getWorkerPoolOrBuilder

      public WorkerPoolOrBuilder getWorkerPoolOrBuilder()
       Required. The `WorkerPool` to update.
      
       The `name` field is used to identify the `WorkerPool` to update.
       Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
       
      .google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkerPoolOrBuilder in interface UpdateWorkerPoolRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. A mask specifying which fields in `worker_pool` to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpdateWorkerPoolRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. A mask specifying which fields in `worker_pool` to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpdateWorkerPoolRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateWorkerPoolRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. A mask specifying which fields in `worker_pool` to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpdateWorkerPoolRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. A mask specifying which fields in `worker_pool` to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpdateWorkerPoolRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. A mask specifying which fields in `worker_pool` to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpdateWorkerPoolRequest.Builder clearUpdateMask()
       Optional. A mask specifying which fields in `worker_pool` to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. A mask specifying which fields in `worker_pool` to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. A mask specifying which fields in `worker_pool` to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateWorkerPoolRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       If set, validate the request and preview the response, but do not actually
       post it.
       
      bool validate_only = 4;
      Specified by:
      getValidateOnly in interface UpdateWorkerPoolRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public UpdateWorkerPoolRequest.Builder setValidateOnly(boolean value)
       If set, validate the request and preview the response, but do not actually
       post it.
       
      bool validate_only = 4;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public UpdateWorkerPoolRequest.Builder clearValidateOnly()
       If set, validate the request and preview the response, but do not actually
       post it.
       
      bool validate_only = 4;
      Returns:
      This builder for chaining.