Class AssetList.Builder (0.22.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
TypeDescription
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
NameDescription
valuesIterable<String>

The assetIds to add.

Returns
TypeDescription
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
NameDescription
valueString

The assetIds to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the assetIds to add.

Returns
TypeDescription
AssetList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AssetList build()
Returns
TypeDescription
AssetList

buildPartial()

public AssetList buildPartial()
Returns
TypeDescription
AssetList

clear()

public AssetList.Builder clear()
Returns
TypeDescription
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
TypeDescription
AssetList.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AssetList.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the assetIds.

getDefaultInstanceForType()

public AssetList getDefaultInstanceForType()
Returns
TypeDescription
AssetList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AssetList other)

public AssetList.Builder mergeFrom(AssetList other)
Parameter
NameDescription
otherAssetList
Returns
TypeDescription
AssetList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssetList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The assetIds to set.

Returns
TypeDescription
AssetList.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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