Class BatchUpdateAssetsRequest.Builder (0.14.0)

public static final class BatchUpdateAssetsRequest.Builder extends GeneratedMessageV3.Builder<BatchUpdateAssetsRequest.Builder> implements BatchUpdateAssetsRequestOrBuilder

A request to update a list of assets.

Protobuf type google.cloud.migrationcenter.v1.BatchUpdateAssetsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRequests(Iterable<? extends UpdateAssetRequest> values)

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];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.UpdateAssetRequest>
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchUpdateAssetsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

addRequests(UpdateAssetRequest value)

public BatchUpdateAssetsRequest.Builder addRequests(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];

Parameter
NameDescription
valueUpdateAssetRequest
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

addRequests(UpdateAssetRequest.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueUpdateAssetRequest.Builder
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

addRequests(int index, UpdateAssetRequest value)

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];

Parameters
NameDescription
indexint
valueUpdateAssetRequest
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

addRequests(int index, UpdateAssetRequest.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueUpdateAssetRequest.Builder
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

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];

Returns
TypeDescription
UpdateAssetRequest.Builder

addRequestsBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
UpdateAssetRequest.Builder

build()

public BatchUpdateAssetsRequest build()
Returns
TypeDescription
BatchUpdateAssetsRequest

buildPartial()

public BatchUpdateAssetsRequest buildPartial()
Returns
TypeDescription
BatchUpdateAssetsRequest

clear()

public BatchUpdateAssetsRequest.Builder clear()
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchUpdateAssetsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchUpdateAssetsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

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
TypeDescription
BatchUpdateAssetsRequest.Builder

This builder for chaining.

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];

Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

clone()

public BatchUpdateAssetsRequest.Builder clone()
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchUpdateAssetsRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchUpdateAssetsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Parent value for batch asset update.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent value for batch asset update.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getRequests(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
UpdateAssetRequest

getRequestsBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
UpdateAssetRequest.Builder

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];

Returns
TypeDescription
List<Builder>

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];

Returns
TypeDescription
int

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];

Returns
TypeDescription
List<UpdateAssetRequest>

getRequestsOrBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
UpdateAssetRequestOrBuilder

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];

Returns
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.UpdateAssetRequestOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchUpdateAssetsRequest other)

public BatchUpdateAssetsRequest.Builder mergeFrom(BatchUpdateAssetsRequest other)
Parameter
NameDescription
otherBatchUpdateAssetsRequest
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchUpdateAssetsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchUpdateAssetsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchUpdateAssetsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

removeRequests(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchUpdateAssetsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

setParent(String value)

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) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchUpdateAssetsRequest.Builder setParentBytes(ByteString value)

Required. Parent value for batch asset update.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchUpdateAssetsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides

setRequests(int index, UpdateAssetRequest value)

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];

Parameters
NameDescription
indexint
valueUpdateAssetRequest
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

setRequests(int index, UpdateAssetRequest.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueUpdateAssetRequest.Builder
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchUpdateAssetsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchUpdateAssetsRequest.Builder
Overrides