public static final class ProductCertification.Builder extends GeneratedMessageV3.Builder<ProductCertification.Builder> implements ProductCertificationOrBuilder
Product certification, initially introduced for EU energy efficiency labeling compliance using the EU EPREL database.
Protobuf type google.shopping.merchant.products.v1.ProductCertification
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProductCertification.BuilderImplements
ProductCertificationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductCertification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
build()
public ProductCertification build()
Returns | |
---|---|
Type | Description |
ProductCertification |
buildPartial()
public ProductCertification buildPartial()
Returns | |
---|---|
Type | Description |
ProductCertification |
clear()
public ProductCertification.Builder clear()
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
clearCertificationAuthority()
public ProductCertification.Builder clearCertificationAuthority()
The certification authority.
optional .google.shopping.merchant.products.v1.CertificationAuthority certification_authority = 1;
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
This builder for chaining. |
clearCertificationCode()
public ProductCertification.Builder clearCertificationCode()
The certification code. Maximum length is 2000 characters.
optional string certification_code = 3;
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
This builder for chaining. |
clearCertificationName()
public ProductCertification.Builder clearCertificationName()
The name of the certification.
optional .google.shopping.merchant.products.v1.CertificationName certification_name = 2;
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
This builder for chaining. |
clearCertificationValue()
public ProductCertification.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 |
ProductCertification.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ProductCertification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductCertification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
clone()
public ProductCertification.Builder clone()
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
getCertificationAuthority()
public CertificationAuthority getCertificationAuthority()
The certification authority.
optional .google.shopping.merchant.products.v1.CertificationAuthority certification_authority = 1;
Returns | |
---|---|
Type | Description |
CertificationAuthority |
The certificationAuthority. |
getCertificationAuthorityValue()
public int getCertificationAuthorityValue()
The certification authority.
optional .google.shopping.merchant.products.v1.CertificationAuthority certification_authority = 1;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire 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 CertificationName getCertificationName()
The name of the certification.
optional .google.shopping.merchant.products.v1.CertificationName certification_name = 2;
Returns | |
---|---|
Type | Description |
CertificationName |
The certificationName. |
getCertificationNameValue()
public int getCertificationNameValue()
The name of the certification.
optional .google.shopping.merchant.products.v1.CertificationName certification_name = 2;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire 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 ProductCertification getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ProductCertification |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
hasCertificationAuthority()
public boolean hasCertificationAuthority()
The certification authority.
optional .google.shopping.merchant.products.v1.CertificationAuthority 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.
optional .google.shopping.merchant.products.v1.CertificationName 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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductCertification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ProductCertification.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
mergeFrom(ProductCertification other)
public ProductCertification.Builder mergeFrom(ProductCertification other)
Parameter | |
---|---|
Name | Description |
other |
ProductCertification |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductCertification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
setCertificationAuthority(CertificationAuthority value)
public ProductCertification.Builder setCertificationAuthority(CertificationAuthority value)
The certification authority.
optional .google.shopping.merchant.products.v1.CertificationAuthority certification_authority = 1;
Parameter | |
---|---|
Name | Description |
value |
CertificationAuthority The certificationAuthority to set. |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
This builder for chaining. |
setCertificationAuthorityValue(int value)
public ProductCertification.Builder setCertificationAuthorityValue(int value)
The certification authority.
optional .google.shopping.merchant.products.v1.CertificationAuthority certification_authority = 1;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for certificationAuthority to set. |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
This builder for chaining. |
setCertificationCode(String value)
public ProductCertification.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 |
ProductCertification.Builder |
This builder for chaining. |
setCertificationCodeBytes(ByteString value)
public ProductCertification.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 |
ProductCertification.Builder |
This builder for chaining. |
setCertificationName(CertificationName value)
public ProductCertification.Builder setCertificationName(CertificationName value)
The name of the certification.
optional .google.shopping.merchant.products.v1.CertificationName certification_name = 2;
Parameter | |
---|---|
Name | Description |
value |
CertificationName The certificationName to set. |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
This builder for chaining. |
setCertificationNameValue(int value)
public ProductCertification.Builder setCertificationNameValue(int value)
The name of the certification.
optional .google.shopping.merchant.products.v1.CertificationName certification_name = 2;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for certificationName to set. |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
This builder for chaining. |
setCertificationValue(String value)
public ProductCertification.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 |
ProductCertification.Builder |
This builder for chaining. |
setCertificationValueBytes(ByteString value)
public ProductCertification.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 |
ProductCertification.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ProductCertification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductCertification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductCertification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProductCertification.Builder |