Class BucketList.Builder (0.23.0)

public static final class BucketList.Builder extends GeneratedMessage.Builder<BucketList.Builder> implements BucketListOrBuilder

Describes list of buckets and their objects to be transformed.

Protobuf type google.cloud.storagebatchoperations.v1.BucketList

Implements

BucketListOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllBuckets(Iterable<? extends BucketList.Bucket> values)

public BucketList.Builder addAllBuckets(Iterable<? extends BucketList.Bucket> values)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.storagebatchoperations.v1.BucketList.Bucket>
Returns
Type Description
BucketList.Builder

addBuckets(BucketList.Bucket value)

public BucketList.Builder addBuckets(BucketList.Bucket value)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BucketList.Bucket
Returns
Type Description
BucketList.Builder

addBuckets(BucketList.Bucket.Builder builderForValue)

public BucketList.Builder addBuckets(BucketList.Bucket.Builder builderForValue)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BucketList.Bucket.Builder
Returns
Type Description
BucketList.Builder

addBuckets(int index, BucketList.Bucket value)

public BucketList.Builder addBuckets(int index, BucketList.Bucket value)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value BucketList.Bucket
Returns
Type Description
BucketList.Builder

addBuckets(int index, BucketList.Bucket.Builder builderForValue)

public BucketList.Builder addBuckets(int index, BucketList.Bucket.Builder builderForValue)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue BucketList.Bucket.Builder
Returns
Type Description
BucketList.Builder

addBucketsBuilder()

public BucketList.Bucket.Builder addBucketsBuilder()

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BucketList.Bucket.Builder

addBucketsBuilder(int index)

public BucketList.Bucket.Builder addBucketsBuilder(int index)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BucketList.Bucket.Builder

build()

public BucketList build()
Returns
Type Description
BucketList

buildPartial()

public BucketList buildPartial()
Returns
Type Description
BucketList

clear()

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

clearBuckets()

public BucketList.Builder clearBuckets()

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BucketList.Builder

getBuckets(int index)

public BucketList.Bucket getBuckets(int index)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BucketList.Bucket

getBucketsBuilder(int index)

public BucketList.Bucket.Builder getBucketsBuilder(int index)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BucketList.Bucket.Builder

getBucketsBuilderList()

public List<BucketList.Bucket.Builder> getBucketsBuilderList()

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getBucketsCount()

public int getBucketsCount()

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getBucketsList()

public List<BucketList.Bucket> getBucketsList()

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Bucket>

getBucketsOrBuilder(int index)

public BucketList.BucketOrBuilder getBucketsOrBuilder(int index)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BucketList.BucketOrBuilder

getBucketsOrBuilderList()

public List<? extends BucketList.BucketOrBuilder> getBucketsOrBuilderList()

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.storagebatchoperations.v1.BucketList.BucketOrBuilder>

getDefaultInstanceForType()

public BucketList getDefaultInstanceForType()
Returns
Type Description
BucketList

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(BucketList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeBuckets(int index)

public BucketList.Builder removeBuckets(int index)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BucketList.Builder

setBuckets(int index, BucketList.Bucket value)

public BucketList.Builder setBuckets(int index, BucketList.Bucket value)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value BucketList.Bucket
Returns
Type Description
BucketList.Builder

setBuckets(int index, BucketList.Bucket.Builder builderForValue)

public BucketList.Builder setBuckets(int index, BucketList.Bucket.Builder builderForValue)

Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.

repeated .google.cloud.storagebatchoperations.v1.BucketList.Bucket buckets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue BucketList.Bucket.Builder
Returns
Type Description
BucketList.Builder