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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
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>
|
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
|
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];
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
|
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];
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];
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
|
public Metadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Metadata buildPartial()
public Metadata.Builder clear()
Overrides
public Metadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public Metadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Metadata.Builder clone()
Overrides
public Metadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
|
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
|
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];
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 |
|
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];
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
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Metadata.Builder mergeFrom(Metadata other)
Parameter |
Name |
Description |
other |
Metadata
|
public Metadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Metadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final Metadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public Metadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
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
|
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];
public Metadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Metadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides