Class PrefixList.Builder (0.2.0)

public static final class PrefixList.Builder extends GeneratedMessageV3.Builder<PrefixList.Builder> implements PrefixListOrBuilder

Describes prefixes of objects to be transformed.

Protobuf type google.cloud.storagebatchoperations.v1.PrefixList

Implements

PrefixListOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllIncludedObjectPrefixes(Iterable<String> values)

public PrefixList.Builder addAllIncludedObjectPrefixes(Iterable<String> values)

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The includedObjectPrefixes to add.

Returns
Type Description
PrefixList.Builder

This builder for chaining.

addIncludedObjectPrefixes(String value)

public PrefixList.Builder addIncludedObjectPrefixes(String value)

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The includedObjectPrefixes to add.

Returns
Type Description
PrefixList.Builder

This builder for chaining.

addIncludedObjectPrefixesBytes(ByteString value)

public PrefixList.Builder addIncludedObjectPrefixesBytes(ByteString value)

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the includedObjectPrefixes to add.

Returns
Type Description
PrefixList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrefixList build()
Returns
Type Description
PrefixList

buildPartial()

public PrefixList buildPartial()
Returns
Type Description
PrefixList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIncludedObjectPrefixes()

public PrefixList.Builder clearIncludedObjectPrefixes()

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrefixList.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PrefixList getDefaultInstanceForType()
Returns
Type Description
PrefixList

getDescriptorForType()

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

getIncludedObjectPrefixes(int index)

public String getIncludedObjectPrefixes(int index)

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The includedObjectPrefixes at the given index.

getIncludedObjectPrefixesBytes(int index)

public ByteString getIncludedObjectPrefixesBytes(int index)

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the includedObjectPrefixes at the given index.

getIncludedObjectPrefixesCount()

public int getIncludedObjectPrefixesCount()

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of includedObjectPrefixes.

getIncludedObjectPrefixesList()

public ProtocolStringList getIncludedObjectPrefixesList()

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the includedObjectPrefixes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrefixList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrefixList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrefixList.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setIncludedObjectPrefixes(int index, String value)

public PrefixList.Builder setIncludedObjectPrefixes(int index, String value)

Optional. Include prefixes of the objects to be transformed.

  • Supports full object name
  • Supports prefix of the object name
  • Wildcards are not supported
  • Supports empty string for all objects in a bucket.

repeated string included_object_prefixes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The includedObjectPrefixes to set.

Returns
Type Description
PrefixList.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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