Class AssetList.Builder (0.26.0)

public static final class AssetList.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AssetList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AssetList.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public AssetList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AssetList.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AssetList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AssetList.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssetList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public AssetList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AssetList.Builder
Overrides

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

public AssetList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AssetList.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AssetList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AssetList.Builder
Overrides