Class DatasetConfig.SourceFolders.Builder (0.68.0)

public static final class DatasetConfig.SourceFolders.Builder extends GeneratedMessage.Builder<DatasetConfig.SourceFolders.Builder> implements DatasetConfig.SourceFoldersOrBuilder

Specifies a set of folders to include in the dataset

Protobuf type google.cloud.storageinsights.v1.DatasetConfig.SourceFolders

Static Methods

getDescriptor()

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

Methods

addAllFolderNumbers(Iterable<? extends Long> values)

public DatasetConfig.SourceFolders.Builder addAllFolderNumbers(Iterable<? extends Long> values)

Optional. The list of folder numbers to include in the dataset.

repeated int64 folder_numbers = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The folderNumbers to add.

Returns
Type Description
DatasetConfig.SourceFolders.Builder

This builder for chaining.

addFolderNumbers(long value)

public DatasetConfig.SourceFolders.Builder addFolderNumbers(long value)

Optional. The list of folder numbers to include in the dataset.

repeated int64 folder_numbers = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The folderNumbers to add.

Returns
Type Description
DatasetConfig.SourceFolders.Builder

This builder for chaining.

build()

public DatasetConfig.SourceFolders build()
Returns
Type Description
DatasetConfig.SourceFolders

buildPartial()

public DatasetConfig.SourceFolders buildPartial()
Returns
Type Description
DatasetConfig.SourceFolders

clear()

public DatasetConfig.SourceFolders.Builder clear()
Returns
Type Description
DatasetConfig.SourceFolders.Builder
Overrides

clearFolderNumbers()

public DatasetConfig.SourceFolders.Builder clearFolderNumbers()

Optional. The list of folder numbers to include in the dataset.

repeated int64 folder_numbers = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DatasetConfig.SourceFolders.Builder

This builder for chaining.

getDefaultInstanceForType()

public DatasetConfig.SourceFolders getDefaultInstanceForType()
Returns
Type Description
DatasetConfig.SourceFolders

getDescriptorForType()

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

getFolderNumbers(int index)

public long getFolderNumbers(int index)

Optional. The list of folder numbers to include in the dataset.

repeated int64 folder_numbers = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The folderNumbers at the given index.

getFolderNumbersCount()

public int getFolderNumbersCount()

Optional. The list of folder numbers to include in the dataset.

repeated int64 folder_numbers = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of folderNumbers.

getFolderNumbersList()

public List<Long> getFolderNumbersList()

Optional. The list of folder numbers to include in the dataset.

repeated int64 folder_numbers = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Long>

A list containing the folderNumbers.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DatasetConfig.SourceFolders other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFolderNumbers(int index, long value)

public DatasetConfig.SourceFolders.Builder setFolderNumbers(int index, long value)

Optional. The list of folder numbers to include in the dataset.

repeated int64 folder_numbers = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value long

The folderNumbers to set.

Returns
Type Description
DatasetConfig.SourceFolders.Builder

This builder for chaining.