Class Metadata.Builder (0.42.0)

public static final class Metadata.Builder extends GeneratedMessage.Builder<Metadata.Builder> implements MetadataOrBuilder

A metadata key/value entry.

Protobuf type google.cloud.backupdr.v1.Metadata

Implements

MetadataOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllItems(Iterable<? extends Entry> values)

public Metadata.Builder addAllItems(Iterable<? extends Entry> values)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.backupdr.v1.Entry>
Returns
Type Description
Metadata.Builder

addItems(Entry value)

public Metadata.Builder addItems(Entry value)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Entry
Returns
Type Description
Metadata.Builder

addItems(Entry.Builder builderForValue)

public Metadata.Builder addItems(Entry.Builder builderForValue)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Entry.Builder
Returns
Type Description
Metadata.Builder

addItems(int index, Entry value)

public Metadata.Builder addItems(int index, Entry value)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Entry
Returns
Type Description
Metadata.Builder

addItems(int index, Entry.Builder builderForValue)

public Metadata.Builder addItems(int index, Entry.Builder builderForValue)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Entry.Builder
Returns
Type Description
Metadata.Builder

addItemsBuilder()

public Entry.Builder addItemsBuilder()

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Entry.Builder

addItemsBuilder(int index)

public Entry.Builder addItemsBuilder(int index)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Entry.Builder

build()

public Metadata build()
Returns
Type Description
Metadata

buildPartial()

public Metadata buildPartial()
Returns
Type Description
Metadata

clear()

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

clearItems()

public Metadata.Builder clearItems()

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Metadata.Builder

getDefaultInstanceForType()

public Metadata getDefaultInstanceForType()
Returns
Type Description
Metadata

getDescriptorForType()

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

getItems(int index)

public Entry getItems(int index)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Entry

getItemsBuilder(int index)

public Entry.Builder getItemsBuilder(int index)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Entry.Builder

getItemsBuilderList()

public List<Entry.Builder> getItemsBuilderList()

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getItemsCount()

public int getItemsCount()

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getItemsList()

public List<Entry> getItemsList()

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Entry>

getItemsOrBuilder(int index)

public EntryOrBuilder getItemsOrBuilder(int index)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EntryOrBuilder

getItemsOrBuilderList()

public List<? extends EntryOrBuilder> getItemsOrBuilderList()

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.EntryOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Metadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeItems(int index)

public Metadata.Builder removeItems(int index)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Metadata.Builder

setItems(int index, Entry value)

public Metadata.Builder setItems(int index, Entry value)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Entry
Returns
Type Description
Metadata.Builder

setItems(int index, Entry.Builder builderForValue)

public Metadata.Builder setItems(int index, Entry.Builder builderForValue)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Entry.Builder
Returns
Type Description
Metadata.Builder