public static final class Model.PageOptimizationConfig.Panel.Builder extends GeneratedMessageV3.Builder<Model.PageOptimizationConfig.Panel.Builder> implements Model.PageOptimizationConfig.PanelOrBuilder
An individual panel with a list of
ServingConfigs to consider
for it.
Protobuf type google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Panel
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllCandidates(Iterable<? extends Model.PageOptimizationConfig.Candidate> values)
public Model.PageOptimizationConfig.Panel.Builder addAllCandidates(Iterable<? extends Model.PageOptimizationConfig.Candidate> values)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate>
|
addCandidates(Model.PageOptimizationConfig.Candidate value)
public Model.PageOptimizationConfig.Panel.Builder addCandidates(Model.PageOptimizationConfig.Candidate value)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
addCandidates(Model.PageOptimizationConfig.Candidate.Builder builderForValue)
public Model.PageOptimizationConfig.Panel.Builder addCandidates(Model.PageOptimizationConfig.Candidate.Builder builderForValue)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
addCandidates(int index, Model.PageOptimizationConfig.Candidate value)
public Model.PageOptimizationConfig.Panel.Builder addCandidates(int index, Model.PageOptimizationConfig.Candidate value)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
addCandidates(int index, Model.PageOptimizationConfig.Candidate.Builder builderForValue)
public Model.PageOptimizationConfig.Panel.Builder addCandidates(int index, Model.PageOptimizationConfig.Candidate.Builder builderForValue)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
addCandidatesBuilder()
public Model.PageOptimizationConfig.Candidate.Builder addCandidatesBuilder()
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
addCandidatesBuilder(int index)
public Model.PageOptimizationConfig.Candidate.Builder addCandidatesBuilder(int index)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Model.PageOptimizationConfig.Panel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Model.PageOptimizationConfig.Panel build()
buildPartial()
public Model.PageOptimizationConfig.Panel buildPartial()
clear()
public Model.PageOptimizationConfig.Panel.Builder clear()
Overrides
clearCandidates()
public Model.PageOptimizationConfig.Panel.Builder clearCandidates()
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
clearDefaultCandidate()
public Model.PageOptimizationConfig.Panel.Builder clearDefaultCandidate()
Required. The default candidate. If the model fails at serving time,
we fall back to the default.
.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate default_candidate = 3 [(.google.api.field_behavior) = REQUIRED];
clearDisplayName()
public Model.PageOptimizationConfig.Panel.Builder clearDisplayName()
Optional. The name to display for the panel.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public Model.PageOptimizationConfig.Panel.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Model.PageOptimizationConfig.Panel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Model.PageOptimizationConfig.Panel.Builder clone()
Overrides
getCandidates(int index)
public Model.PageOptimizationConfig.Candidate getCandidates(int index)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
getCandidatesBuilder(int index)
public Model.PageOptimizationConfig.Candidate.Builder getCandidatesBuilder(int index)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
getCandidatesBuilderList()
public List<Model.PageOptimizationConfig.Candidate.Builder> getCandidatesBuilderList()
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
getCandidatesCount()
public int getCandidatesCount()
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
int | |
getCandidatesList()
public List<Model.PageOptimizationConfig.Candidate> getCandidatesList()
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
getCandidatesOrBuilder(int index)
public Model.PageOptimizationConfig.CandidateOrBuilder getCandidatesOrBuilder(int index)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
getCandidatesOrBuilderList()
public List<? extends Model.PageOptimizationConfig.CandidateOrBuilder> getCandidatesOrBuilderList()
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
List<? extends com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.CandidateOrBuilder> | |
getDefaultCandidate()
public Model.PageOptimizationConfig.Candidate getDefaultCandidate()
Required. The default candidate. If the model fails at serving time,
we fall back to the default.
.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate default_candidate = 3 [(.google.api.field_behavior) = REQUIRED];
getDefaultCandidateBuilder()
public Model.PageOptimizationConfig.Candidate.Builder getDefaultCandidateBuilder()
Required. The default candidate. If the model fails at serving time,
we fall back to the default.
.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate default_candidate = 3 [(.google.api.field_behavior) = REQUIRED];
getDefaultCandidateOrBuilder()
public Model.PageOptimizationConfig.CandidateOrBuilder getDefaultCandidateOrBuilder()
Required. The default candidate. If the model fails at serving time,
we fall back to the default.
.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate default_candidate = 3 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public Model.PageOptimizationConfig.Panel getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDisplayName()
public String getDisplayName()
Optional. The name to display for the panel.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Optional. The name to display for the panel.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
ByteString | The bytes for displayName.
|
hasDefaultCandidate()
public boolean hasDefaultCandidate()
Required. The default candidate. If the model fails at serving time,
we fall back to the default.
.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate default_candidate = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the defaultCandidate field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeDefaultCandidate(Model.PageOptimizationConfig.Candidate value)
public Model.PageOptimizationConfig.Panel.Builder mergeDefaultCandidate(Model.PageOptimizationConfig.Candidate value)
Required. The default candidate. If the model fails at serving time,
we fall back to the default.
.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate default_candidate = 3 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(Model.PageOptimizationConfig.Panel other)
public Model.PageOptimizationConfig.Panel.Builder mergeFrom(Model.PageOptimizationConfig.Panel other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Model.PageOptimizationConfig.Panel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Model.PageOptimizationConfig.Panel.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Model.PageOptimizationConfig.Panel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeCandidates(int index)
public Model.PageOptimizationConfig.Panel.Builder removeCandidates(int index)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
setCandidates(int index, Model.PageOptimizationConfig.Candidate value)
public Model.PageOptimizationConfig.Panel.Builder setCandidates(int index, Model.PageOptimizationConfig.Candidate value)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
setCandidates(int index, Model.PageOptimizationConfig.Candidate.Builder builderForValue)
public Model.PageOptimizationConfig.Panel.Builder setCandidates(int index, Model.PageOptimizationConfig.Candidate.Builder builderForValue)
Required. The candidates to consider on the panel.
repeated .google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate candidates = 2 [(.google.api.field_behavior) = REQUIRED];
setDefaultCandidate(Model.PageOptimizationConfig.Candidate value)
public Model.PageOptimizationConfig.Panel.Builder setDefaultCandidate(Model.PageOptimizationConfig.Candidate value)
Required. The default candidate. If the model fails at serving time,
we fall back to the default.
.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate default_candidate = 3 [(.google.api.field_behavior) = REQUIRED];
setDefaultCandidate(Model.PageOptimizationConfig.Candidate.Builder builderForValue)
public Model.PageOptimizationConfig.Panel.Builder setDefaultCandidate(Model.PageOptimizationConfig.Candidate.Builder builderForValue)
Required. The default candidate. If the model fails at serving time,
we fall back to the default.
.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate default_candidate = 3 [(.google.api.field_behavior) = REQUIRED];
setDisplayName(String value)
public Model.PageOptimizationConfig.Panel.Builder setDisplayName(String value)
Optional. The name to display for the panel.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
value | String
The displayName to set.
|
setDisplayNameBytes(ByteString value)
public Model.PageOptimizationConfig.Panel.Builder setDisplayNameBytes(ByteString value)
Optional. The name to display for the panel.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for displayName to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Model.PageOptimizationConfig.Panel.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Model.PageOptimizationConfig.Panel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Model.PageOptimizationConfig.Panel.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides