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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Model.PageOptimizationConfig.Candidate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Model.PageOptimizationConfig.Candidate build()
Returns
buildPartial()
public Model.PageOptimizationConfig.Candidate buildPartial()
Returns
clear()
public Model.PageOptimizationConfig.Candidate.Builder clear()
Returns
Overrides
clearCandidate()
public Model.PageOptimizationConfig.Candidate.Builder clearCandidate()
Returns
clearField(Descriptors.FieldDescriptor field)
public Model.PageOptimizationConfig.Candidate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Model.PageOptimizationConfig.Candidate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public Model.PageOptimizationConfig.Candidate.Builder clone()
Returns
Overrides
getCandidateCase()
public Model.PageOptimizationConfig.Candidate.CandidateCase getCandidateCase()
Returns
getDefaultInstanceForType()
public Model.PageOptimizationConfig.Candidate getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the servingConfigId field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Model.PageOptimizationConfig.Candidate other)
public Model.PageOptimizationConfig.Candidate.Builder mergeFrom(Model.PageOptimizationConfig.Candidate other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Model.PageOptimizationConfig.Candidate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Model.PageOptimizationConfig.Candidate.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Model.PageOptimizationConfig.Candidate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Model.PageOptimizationConfig.Candidate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Model.PageOptimizationConfig.Candidate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Name | Description |
value | String
The servingConfigId to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for servingConfigId to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Model.PageOptimizationConfig.Candidate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides