Class NameValuePair.Builder (0.42.0)

public static final class NameValuePair.Builder extends GeneratedMessage.Builder<NameValuePair.Builder> implements NameValuePairOrBuilder

A name-value pair representing an attribute entry usable in a list of attributes.

Protobuf type google.cloud.oracledatabase.v1.NameValuePair

Static Methods

getDescriptor()

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

Methods

build()

public NameValuePair build()
Returns
Type Description
NameValuePair

buildPartial()

public NameValuePair buildPartial()
Returns
Type Description
NameValuePair

clear()

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

clearKey()

public NameValuePair.Builder clearKey()

Required. The name of the property entry.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NameValuePair.Builder

This builder for chaining.

clearValue()

public NameValuePair.Builder clearValue()

Required. The value of the property entry.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NameValuePair.Builder

This builder for chaining.

getDefaultInstanceForType()

public NameValuePair getDefaultInstanceForType()
Returns
Type Description
NameValuePair

getDescriptorForType()

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

getKey()

public String getKey()

Required. The name of the property entry.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The name of the property entry.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for key.

getValue()

public String getValue()

Required. The value of the property entry.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. The value of the property entry.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NameValuePair other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKey(String value)

public NameValuePair.Builder setKey(String value)

Required. The name of the property entry.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
NameValuePair.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public NameValuePair.Builder setKeyBytes(ByteString value)

Required. The name of the property entry.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
NameValuePair.Builder

This builder for chaining.

setValue(String value)

public NameValuePair.Builder setValue(String value)

Required. The value of the property entry.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
NameValuePair.Builder

This builder for chaining.

setValueBytes(ByteString value)

public NameValuePair.Builder setValueBytes(ByteString value)

Required. The value of the property entry.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
NameValuePair.Builder

This builder for chaining.