Class Certification.Builder (0.20.0)

public static final class Certification.Builder extends GeneratedMessageV3.Builder<Certification.Builder> implements CertificationOrBuilder

The certification for the product. Use the this attribute to describe certifications, such as energy efficiency ratings, associated with a product.

Protobuf type google.shopping.css.v1.Certification

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Certification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Certification.Builder
Overrides

build()

public Certification build()
Returns
Type Description
Certification

buildPartial()

public Certification buildPartial()
Returns
Type Description
Certification

clear()

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

clearAuthority()

public Certification.Builder clearAuthority()

The authority or certification body responsible for issuing the certification. At this time, the most common value is "EC" or “European_Commission” for energy labels in the EU.

string authority = 2;

Returns
Type Description
Certification.Builder

This builder for chaining.

clearCode()

public Certification.Builder clearCode()

The code of the certification. For example, for the EPREL certificate with the link https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456 the code is 123456. The code is required for European Energy Labels.

string code = 3;

Returns
Type Description
Certification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Certification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Certification.Builder
Overrides

clearName()

public Certification.Builder clearName()

The name of the certification. At this time, the most common value is "EPREL", which represents energy efficiency certifications in the EU European Registry for Energy Labeling (EPREL) database.

string name = 1;

Returns
Type Description
Certification.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Certification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Certification.Builder
Overrides

clone()

public Certification.Builder clone()
Returns
Type Description
Certification.Builder
Overrides

getAuthority()

public String getAuthority()

The authority or certification body responsible for issuing the certification. At this time, the most common value is "EC" or “European_Commission” for energy labels in the EU.

string authority = 2;

Returns
Type Description
String

The authority.

getAuthorityBytes()

public ByteString getAuthorityBytes()

The authority or certification body responsible for issuing the certification. At this time, the most common value is "EC" or “European_Commission” for energy labels in the EU.

string authority = 2;

Returns
Type Description
ByteString

The bytes for authority.

getCode()

public String getCode()

The code of the certification. For example, for the EPREL certificate with the link https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456 the code is 123456. The code is required for European Energy Labels.

string code = 3;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

The code of the certification. For example, for the EPREL certificate with the link https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456 the code is 123456. The code is required for European Energy Labels.

string code = 3;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public Certification getDefaultInstanceForType()
Returns
Type Description
Certification

getDescriptorForType()

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

getName()

public String getName()

The name of the certification. At this time, the most common value is "EPREL", which represents energy efficiency certifications in the EU European Registry for Energy Labeling (EPREL) database.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the certification. At this time, the most common value is "EPREL", which represents energy efficiency certifications in the EU European Registry for Energy Labeling (EPREL) database.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Certification other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Certification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Certification.Builder
Overrides

setAuthority(String value)

public Certification.Builder setAuthority(String value)

The authority or certification body responsible for issuing the certification. At this time, the most common value is "EC" or “European_Commission” for energy labels in the EU.

string authority = 2;

Parameter
Name Description
value String

The authority to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setAuthorityBytes(ByteString value)

public Certification.Builder setAuthorityBytes(ByteString value)

The authority or certification body responsible for issuing the certification. At this time, the most common value is "EC" or “European_Commission” for energy labels in the EU.

string authority = 2;

Parameter
Name Description
value ByteString

The bytes for authority to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCode(String value)

public Certification.Builder setCode(String value)

The code of the certification. For example, for the EPREL certificate with the link https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456 the code is 123456. The code is required for European Energy Labels.

string code = 3;

Parameter
Name Description
value String

The code to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public Certification.Builder setCodeBytes(ByteString value)

The code of the certification. For example, for the EPREL certificate with the link https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456 the code is 123456. The code is required for European Energy Labels.

string code = 3;

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Certification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Certification.Builder
Overrides

setName(String value)

public Certification.Builder setName(String value)

The name of the certification. At this time, the most common value is "EPREL", which represents energy efficiency certifications in the EU European Registry for Energy Labeling (EPREL) database.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Certification.Builder setNameBytes(ByteString value)

The name of the certification. At this time, the most common value is "EPREL", which represents energy efficiency certifications in the EU European Registry for Energy Labeling (EPREL) database.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Certification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Certification.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Certification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Certification.Builder
Overrides