Class Model.PageOptimizationConfig.Candidate.Builder (2.6.0)

public static final class Model.PageOptimizationConfig.Candidate.Builder extends GeneratedMessageV3.Builder<Model.PageOptimizationConfig.Candidate.Builder> implements Model.PageOptimizationConfig.CandidateOrBuilder

A candidate to consider for a given panel. Currently only ServingConfig are valid candidates.

Protobuf type google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Model.PageOptimizationConfig.Candidate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

build()

public Model.PageOptimizationConfig.Candidate build()
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate

buildPartial()

public Model.PageOptimizationConfig.Candidate buildPartial()
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate

clear()

public Model.PageOptimizationConfig.Candidate.Builder clear()
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

clearCandidate()

public Model.PageOptimizationConfig.Candidate.Builder clearCandidate()
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder

clearField(Descriptors.FieldDescriptor field)

public Model.PageOptimizationConfig.Candidate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Model.PageOptimizationConfig.Candidate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

clearServingConfigId()

public Model.PageOptimizationConfig.Candidate.Builder clearServingConfigId()

This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config this would be 'my_candidate_config'

string serving_config_id = 1;

Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder

This builder for chaining.

clone()

public Model.PageOptimizationConfig.Candidate.Builder clone()
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

getCandidateCase()

public Model.PageOptimizationConfig.Candidate.CandidateCase getCandidateCase()
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.CandidateCase

getDefaultInstanceForType()

public Model.PageOptimizationConfig.Candidate getDefaultInstanceForType()
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServingConfigId()

public String getServingConfigId()

This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config this would be 'my_candidate_config'

string serving_config_id = 1;

Returns
TypeDescription
String

The servingConfigId.

getServingConfigIdBytes()

public ByteString getServingConfigIdBytes()

This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config this would be 'my_candidate_config'

string serving_config_id = 1;

Returns
TypeDescription
ByteString

The bytes for servingConfigId.

hasServingConfigId()

public boolean hasServingConfigId()

This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config this would be 'my_candidate_config'

string serving_config_id = 1;

Returns
TypeDescription
boolean

Whether the servingConfigId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Model.PageOptimizationConfig.Candidate other)

public Model.PageOptimizationConfig.Candidate.Builder mergeFrom(Model.PageOptimizationConfig.Candidate other)
Parameter
NameDescription
otherModel.PageOptimizationConfig.Candidate
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Model.PageOptimizationConfig.Candidate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Model.PageOptimizationConfig.Candidate.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Model.PageOptimizationConfig.Candidate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Model.PageOptimizationConfig.Candidate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

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

public Model.PageOptimizationConfig.Candidate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides

setServingConfigId(String value)

public Model.PageOptimizationConfig.Candidate.Builder setServingConfigId(String value)

This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config this would be 'my_candidate_config'

string serving_config_id = 1;

Parameter
NameDescription
valueString

The servingConfigId to set.

Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder

This builder for chaining.

setServingConfigIdBytes(ByteString value)

public Model.PageOptimizationConfig.Candidate.Builder setServingConfigIdBytes(ByteString value)

This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config this would be 'my_candidate_config'

string serving_config_id = 1;

Parameter
NameDescription
valueByteString

The bytes for servingConfigId to set.

Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Model.PageOptimizationConfig.Candidate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Model.PageOptimizationConfig.Candidate.Builder
Overrides