Class Breakdown.Region.Builder (1.11.0)

public static final class Breakdown.Region.Builder extends GeneratedMessage.Builder<Breakdown.Region.Builder> implements Breakdown.RegionOrBuilder

Region with code and localized name.

Protobuf type google.shopping.merchant.issueresolution.v1.Breakdown.Region

Static Methods

getDescriptor()

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

Methods

build()

public Breakdown.Region build()
Returns
Type Description
Breakdown.Region

buildPartial()

public Breakdown.Region buildPartial()
Returns
Type Description
Breakdown.Region

clear()

public Breakdown.Region.Builder clear()
Returns
Type Description
Breakdown.Region.Builder
Overrides

clearCode()

public Breakdown.Region.Builder clearCode()

The CLDR territory code

string code = 1;

Returns
Type Description
Breakdown.Region.Builder

This builder for chaining.

clearName()

public Breakdown.Region.Builder clearName()

The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages.

string name = 2;

Returns
Type Description
Breakdown.Region.Builder

This builder for chaining.

getCode()

public String getCode()

The CLDR territory code

string code = 1;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

The CLDR territory code

string code = 1;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public Breakdown.Region getDefaultInstanceForType()
Returns
Type Description
Breakdown.Region

getDescriptorForType()

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

getName()

public String getName()

The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Breakdown.Region other)

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

setCode(String value)

public Breakdown.Region.Builder setCode(String value)

The CLDR territory code

string code = 1;

Parameter
Name Description
value String

The code to set.

Returns
Type Description
Breakdown.Region.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public Breakdown.Region.Builder setCodeBytes(ByteString value)

The CLDR territory code

string code = 1;

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
Breakdown.Region.Builder

This builder for chaining.

setName(String value)

public Breakdown.Region.Builder setName(String value)

The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Breakdown.Region.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Breakdown.Region.Builder setNameBytes(ByteString value)

The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Breakdown.Region.Builder

This builder for chaining.