Class StringToInt64MapEntry.Builder (0.3.0)

public static final class StringToInt64MapEntry.Builder extends GeneratedMessage.Builder<StringToInt64MapEntry.Builder> implements StringToInt64MapEntryOrBuilder

Protobuf type google.backstory.StringToInt64MapEntry

Static Methods

getDescriptor()

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

Methods

build()

public StringToInt64MapEntry build()
Returns
Type Description
StringToInt64MapEntry

buildPartial()

public StringToInt64MapEntry buildPartial()
Returns
Type Description
StringToInt64MapEntry

clear()

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

clearKey()

public StringToInt64MapEntry.Builder clearKey()

Key field.

optional string key = 1;

Returns
Type Description
StringToInt64MapEntry.Builder

This builder for chaining.

clearValue()

public StringToInt64MapEntry.Builder clearValue()

Value field.

optional int64 value = 2;

Returns
Type Description
StringToInt64MapEntry.Builder

This builder for chaining.

getDefaultInstanceForType()

public StringToInt64MapEntry getDefaultInstanceForType()
Returns
Type Description
StringToInt64MapEntry

getDescriptorForType()

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

getKey()

public String getKey()

Key field.

optional string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Key field.

optional string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getValue()

public long getValue()

Value field.

optional int64 value = 2;

Returns
Type Description
long

The value.

hasKey()

public boolean hasKey()

Key field.

optional string key = 1;

Returns
Type Description
boolean

Whether the key field is set.

hasValue()

public boolean hasValue()

Value field.

optional int64 value = 2;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StringToInt64MapEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKey(String value)

public StringToInt64MapEntry.Builder setKey(String value)

Key field.

optional string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
StringToInt64MapEntry.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public StringToInt64MapEntry.Builder setKeyBytes(ByteString value)

Key field.

optional string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
StringToInt64MapEntry.Builder

This builder for chaining.

setValue(long value)

public StringToInt64MapEntry.Builder setValue(long value)

Value field.

optional int64 value = 2;

Parameter
Name Description
value long

The value to set.

Returns
Type Description
StringToInt64MapEntry.Builder

This builder for chaining.