Class AssetList.Builder (0.65.0)

public static final class AssetList.Builder extends GeneratedMessage.Builder<AssetList.Builder> implements AssetListOrBuilder

Lists the asset IDs of all assets.

Protobuf type google.cloud.migrationcenter.v1.AssetList

Implements

AssetListOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAssetIds(Iterable<String> values)

public AssetList.Builder addAllAssetIds(Iterable<String> values)

Required. A list of asset IDs

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

Parameter
Name Description
values Iterable<String>

The assetIds to add.

Returns
Type Description
AssetList.Builder

This builder for chaining.

addAssetIds(String value)

public AssetList.Builder addAssetIds(String value)

Required. A list of asset IDs

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

Parameter
Name Description
value String

The assetIds to add.

Returns
Type Description
AssetList.Builder

This builder for chaining.

addAssetIdsBytes(ByteString value)

public AssetList.Builder addAssetIdsBytes(ByteString value)

Required. A list of asset IDs

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

Parameter
Name Description
value ByteString

The bytes of the assetIds to add.

Returns
Type Description
AssetList.Builder

This builder for chaining.

build()

public AssetList build()
Returns
Type Description
AssetList

buildPartial()

public AssetList buildPartial()
Returns
Type Description
AssetList

clear()

public AssetList.Builder clear()
Returns
Type Description
AssetList.Builder
Overrides

clearAssetIds()

public AssetList.Builder clearAssetIds()

Required. A list of asset IDs

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

Returns
Type Description
AssetList.Builder

This builder for chaining.

getAssetIds(int index)

public String getAssetIds(int index)

Required. A list of asset IDs

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The assetIds at the given index.

getAssetIdsBytes(int index)

public ByteString getAssetIdsBytes(int index)

Required. A list of asset IDs

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the assetIds at the given index.

getAssetIdsCount()

public int getAssetIdsCount()

Required. A list of asset IDs

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

Returns
Type Description
int

The count of assetIds.

getAssetIdsList()

public ProtocolStringList getAssetIdsList()

Required. A list of asset IDs

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

Returns
Type Description
ProtocolStringList

A list containing the assetIds.

getDefaultInstanceForType()

public AssetList getDefaultInstanceForType()
Returns
Type Description
AssetList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssetList other)

public AssetList.Builder mergeFrom(AssetList other)
Parameter
Name Description
other AssetList
Returns
Type Description
AssetList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssetList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetList.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AssetList.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssetList.Builder
Overrides

setAssetIds(int index, String value)

public AssetList.Builder setAssetIds(int index, String value)

Required. A list of asset IDs

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

Parameters
Name Description
index int

The index to set the value at.

value String

The assetIds to set.

Returns
Type Description
AssetList.Builder

This builder for chaining.