Class BatchUpdateAssetsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchUpdateAssetsRequest.Builder>
com.google.cloud.migrationcenter.v1.BatchUpdateAssetsRequest.Builder
All Implemented Interfaces:
BatchUpdateAssetsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchUpdateAssetsRequest

public static final class BatchUpdateAssetsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchUpdateAssetsRequest.Builder> implements BatchUpdateAssetsRequestOrBuilder
 A request to update a list of assets.
 
Protobuf type google.cloud.migrationcenter.v1.BatchUpdateAssetsRequest
  • 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<BatchUpdateAssetsRequest.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<BatchUpdateAssetsRequest.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<BatchUpdateAssetsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. Parent value for batch asset update.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface BatchUpdateAssetsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Parent value for batch asset update.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface BatchUpdateAssetsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public BatchUpdateAssetsRequest.Builder setParent(String value)
       Required. Parent value for batch asset update.
       
      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 BatchUpdateAssetsRequest.Builder clearParent()
       Required. Parent value for batch asset update.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchUpdateAssetsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Parent value for batch asset update.
       
      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<UpdateAssetRequest> getRequestsList()
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsList in interface BatchUpdateAssetsRequestOrBuilder
    • getRequestsCount

      public int getRequestsCount()
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsCount in interface BatchUpdateAssetsRequestOrBuilder
    • getRequests

      public UpdateAssetRequest getRequests(int index)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequests in interface BatchUpdateAssetsRequestOrBuilder
    • setRequests

      public BatchUpdateAssetsRequest.Builder setRequests(int index, UpdateAssetRequest value)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRequests

      public BatchUpdateAssetsRequest.Builder setRequests(int index, UpdateAssetRequest.Builder builderForValue)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchUpdateAssetsRequest.Builder addRequests(int index, UpdateAssetRequest value)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchUpdateAssetsRequest.Builder addRequests(UpdateAssetRequest.Builder builderForValue)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchUpdateAssetsRequest.Builder addRequests(int index, UpdateAssetRequest.Builder builderForValue)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllRequests

      public BatchUpdateAssetsRequest.Builder addAllRequests(Iterable<? extends UpdateAssetRequest> values)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRequests

      public BatchUpdateAssetsRequest.Builder clearRequests()
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeRequests

      public BatchUpdateAssetsRequest.Builder removeRequests(int index)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilder

      public UpdateAssetRequest.Builder getRequestsBuilder(int index)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsOrBuilder

      public UpdateAssetRequestOrBuilder getRequestsOrBuilder(int index)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilder in interface BatchUpdateAssetsRequestOrBuilder
    • getRequestsOrBuilderList

      public List<? extends UpdateAssetRequestOrBuilder> getRequestsOrBuilderList()
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilderList in interface BatchUpdateAssetsRequestOrBuilder
    • addRequestsBuilder

      public UpdateAssetRequest.Builder addRequestsBuilder()
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequestsBuilder

      public UpdateAssetRequest.Builder addRequestsBuilder(int index)
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilderList

      public List<UpdateAssetRequest.Builder> getRequestsBuilderList()
       Required. The request message specifying the resources to update.
       A maximum of 1000 assets can be modified in a batch.
       
      repeated .google.cloud.migrationcenter.v1.UpdateAssetRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];