Class Certification.Builder (0.4.0)

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

Product certification, initially introduced for EU energy efficiency labeling compliance using the EU EPREL database.

Protobuf type google.shopping.merchant.products.v1beta.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

clearCertificationAuthority()

public Certification.Builder clearCertificationAuthority()

The certification authority, for example "European_Commission". Maximum length is 2000 characters.

optional string certification_authority = 1;

Returns
Type Description
Certification.Builder

This builder for chaining.

clearCertificationCode()

public Certification.Builder clearCertificationCode()

The certification code. Maximum length is 2000 characters.

optional string certification_code = 3;

Returns
Type Description
Certification.Builder

This builder for chaining.

clearCertificationName()

public Certification.Builder clearCertificationName()

The name of the certification, for example "EPREL". Maximum length is 2000 characters.

optional string certification_name = 2;

Returns
Type Description
Certification.Builder

This builder for chaining.

clearCertificationValue()

public Certification.Builder clearCertificationValue()

The certification value (also known as class, level or grade), for example "A+", "C", "gold". Maximum length is 2000 characters.

optional string certification_value = 4;

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

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

getCertificationAuthority()

public String getCertificationAuthority()

The certification authority, for example "European_Commission". Maximum length is 2000 characters.

optional string certification_authority = 1;

Returns
Type Description
String

The certificationAuthority.

getCertificationAuthorityBytes()

public ByteString getCertificationAuthorityBytes()

The certification authority, for example "European_Commission". Maximum length is 2000 characters.

optional string certification_authority = 1;

Returns
Type Description
ByteString

The bytes for certificationAuthority.

getCertificationCode()

public String getCertificationCode()

The certification code. Maximum length is 2000 characters.

optional string certification_code = 3;

Returns
Type Description
String

The certificationCode.

getCertificationCodeBytes()

public ByteString getCertificationCodeBytes()

The certification code. Maximum length is 2000 characters.

optional string certification_code = 3;

Returns
Type Description
ByteString

The bytes for certificationCode.

getCertificationName()

public String getCertificationName()

The name of the certification, for example "EPREL". Maximum length is 2000 characters.

optional string certification_name = 2;

Returns
Type Description
String

The certificationName.

getCertificationNameBytes()

public ByteString getCertificationNameBytes()

The name of the certification, for example "EPREL". Maximum length is 2000 characters.

optional string certification_name = 2;

Returns
Type Description
ByteString

The bytes for certificationName.

getCertificationValue()

public String getCertificationValue()

The certification value (also known as class, level or grade), for example "A+", "C", "gold". Maximum length is 2000 characters.

optional string certification_value = 4;

Returns
Type Description
String

The certificationValue.

getCertificationValueBytes()

public ByteString getCertificationValueBytes()

The certification value (also known as class, level or grade), for example "A+", "C", "gold". Maximum length is 2000 characters.

optional string certification_value = 4;

Returns
Type Description
ByteString

The bytes for certificationValue.

getDefaultInstanceForType()

public Certification getDefaultInstanceForType()
Returns
Type Description
Certification

getDescriptorForType()

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

hasCertificationAuthority()

public boolean hasCertificationAuthority()

The certification authority, for example "European_Commission". Maximum length is 2000 characters.

optional string certification_authority = 1;

Returns
Type Description
boolean

Whether the certificationAuthority field is set.

hasCertificationCode()

public boolean hasCertificationCode()

The certification code. Maximum length is 2000 characters.

optional string certification_code = 3;

Returns
Type Description
boolean

Whether the certificationCode field is set.

hasCertificationName()

public boolean hasCertificationName()

The name of the certification, for example "EPREL". Maximum length is 2000 characters.

optional string certification_name = 2;

Returns
Type Description
boolean

Whether the certificationName field is set.

hasCertificationValue()

public boolean hasCertificationValue()

The certification value (also known as class, level or grade), for example "A+", "C", "gold". Maximum length is 2000 characters.

optional string certification_value = 4;

Returns
Type Description
boolean

Whether the certificationValue field is set.

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

setCertificationAuthority(String value)

public Certification.Builder setCertificationAuthority(String value)

The certification authority, for example "European_Commission". Maximum length is 2000 characters.

optional string certification_authority = 1;

Parameter
Name Description
value String

The certificationAuthority to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCertificationAuthorityBytes(ByteString value)

public Certification.Builder setCertificationAuthorityBytes(ByteString value)

The certification authority, for example "European_Commission". Maximum length is 2000 characters.

optional string certification_authority = 1;

Parameter
Name Description
value ByteString

The bytes for certificationAuthority to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCertificationCode(String value)

public Certification.Builder setCertificationCode(String value)

The certification code. Maximum length is 2000 characters.

optional string certification_code = 3;

Parameter
Name Description
value String

The certificationCode to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCertificationCodeBytes(ByteString value)

public Certification.Builder setCertificationCodeBytes(ByteString value)

The certification code. Maximum length is 2000 characters.

optional string certification_code = 3;

Parameter
Name Description
value ByteString

The bytes for certificationCode to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCertificationName(String value)

public Certification.Builder setCertificationName(String value)

The name of the certification, for example "EPREL". Maximum length is 2000 characters.

optional string certification_name = 2;

Parameter
Name Description
value String

The certificationName to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCertificationNameBytes(ByteString value)

public Certification.Builder setCertificationNameBytes(ByteString value)

The name of the certification, for example "EPREL". Maximum length is 2000 characters.

optional string certification_name = 2;

Parameter
Name Description
value ByteString

The bytes for certificationName to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCertificationValue(String value)

public Certification.Builder setCertificationValue(String value)

The certification value (also known as class, level or grade), for example "A+", "C", "gold". Maximum length is 2000 characters.

optional string certification_value = 4;

Parameter
Name Description
value String

The certificationValue to set.

Returns
Type Description
Certification.Builder

This builder for chaining.

setCertificationValueBytes(ByteString value)

public Certification.Builder setCertificationValueBytes(ByteString value)

The certification value (also known as class, level or grade), for example "A+", "C", "gold". Maximum length is 2000 characters.

optional string certification_value = 4;

Parameter
Name Description
value ByteString

The bytes for certificationValue 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

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