Class BucketList.Builder (0.2.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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