Class Metadata.Builder (0.11.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public Metadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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