public static final class Entry.Builder extends GeneratedMessageV3.Builder<Entry.Builder> implements EntryOrBuilder
A key/value pair to be used for storing metadata.
Protobuf type google.cloud.backupdr.v1.Entry
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Entry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
Entry |
|
buildPartial()
public Entry buildPartial()
Returns |
Type |
Description |
Entry |
|
clear()
public Entry.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Entry.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearKey()
public Entry.Builder clearKey()
Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
Entry.Builder |
This builder for chaining.
|
clearOneof(Descriptors.OneofDescriptor oneof)
public Entry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearValue()
public Entry.Builder clearValue()
Optional. Value for the metadata entry. These are free-form strings, and
only have meaning as interpreted by the image running in the instance. The
only restriction placed on values is that their size must be less than
or equal to 262144 bytes (256 KiB).
optional string value = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
Entry.Builder |
This builder for chaining.
|
clone()
public Entry.Builder clone()
Overrides
getDefaultInstanceForType()
public Entry getDefaultInstanceForType()
Returns |
Type |
Description |
Entry |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getKey()
Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The key.
|
getKeyBytes()
public ByteString getKeyBytes()
Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for key.
|
getValue()
Optional. Value for the metadata entry. These are free-form strings, and
only have meaning as interpreted by the image running in the instance. The
only restriction placed on values is that their size must be less than
or equal to 262144 bytes (256 KiB).
optional string value = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The value.
|
getValueBytes()
public ByteString getValueBytes()
Optional. Value for the metadata entry. These are free-form strings, and
only have meaning as interpreted by the image running in the instance. The
only restriction placed on values is that their size must be less than
or equal to 262144 bytes (256 KiB).
optional string value = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for value.
|
hasKey()
Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the key field is set.
|
hasValue()
public boolean hasValue()
Optional. Value for the metadata entry. These are free-form strings, and
only have meaning as interpreted by the image running in the instance. The
only restriction placed on values is that their size must be less than
or equal to 262144 bytes (256 KiB).
optional string value = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the value field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Entry other)
public Entry.Builder mergeFrom(Entry other)
Parameter |
Name |
Description |
other |
Entry
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Entry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Entry.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Entry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Entry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setKey(String value)
public Entry.Builder setKey(String value)
Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The key to set.
|
Returns |
Type |
Description |
Entry.Builder |
This builder for chaining.
|
setKeyBytes(ByteString value)
public Entry.Builder setKeyBytes(ByteString value)
Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for key to set.
|
Returns |
Type |
Description |
Entry.Builder |
This builder for chaining.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Entry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Entry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setValue(String value)
public Entry.Builder setValue(String value)
Optional. Value for the metadata entry. These are free-form strings, and
only have meaning as interpreted by the image running in the instance. The
only restriction placed on values is that their size must be less than
or equal to 262144 bytes (256 KiB).
optional string value = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The value to set.
|
Returns |
Type |
Description |
Entry.Builder |
This builder for chaining.
|
setValueBytes(ByteString value)
public Entry.Builder setValueBytes(ByteString value)
Optional. Value for the metadata entry. These are free-form strings, and
only have meaning as interpreted by the image running in the instance. The
only restriction placed on values is that their size must be less than
or equal to 262144 bytes (256 KiB).
optional string value = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for value to set.
|
Returns |
Type |
Description |
Entry.Builder |
This builder for chaining.
|