public static final class WidgetConfig.UIComponentField.Builder extends GeneratedMessage.Builder<WidgetConfig.UIComponentField.Builder> implements WidgetConfig.UIComponentFieldOrBuilderFacet field that maps to a UI Component.
Protobuf type google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WidgetConfig.UIComponentField.BuilderImplements
WidgetConfig.UIComponentFieldOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDeviceVisibility(Iterable<? extends WidgetConfig.UIComponentField.DeviceVisibility> values)
public WidgetConfig.UIComponentField.Builder addAllDeviceVisibility(Iterable<? extends WidgetConfig.UIComponentField.DeviceVisibility> values)The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility>The deviceVisibility to add. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
addAllDeviceVisibilityValue(Iterable<Integer> values)
public WidgetConfig.UIComponentField.Builder addAllDeviceVisibilityValue(Iterable<Integer> values)The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for deviceVisibility to add. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
addDeviceVisibility(WidgetConfig.UIComponentField.DeviceVisibility value)
public WidgetConfig.UIComponentField.Builder addDeviceVisibility(WidgetConfig.UIComponentField.DeviceVisibility value)The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
WidgetConfig.UIComponentField.DeviceVisibilityThe deviceVisibility to add. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
addDeviceVisibilityValue(int value)
public WidgetConfig.UIComponentField.Builder addDeviceVisibilityValue(int value)The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for deviceVisibility to add. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
build()
public WidgetConfig.UIComponentField build()| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField |
|
buildPartial()
public WidgetConfig.UIComponentField buildPartial()| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField |
|
clear()
public WidgetConfig.UIComponentField.Builder clear()| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
|
clearDeviceVisibility()
public WidgetConfig.UIComponentField.Builder clearDeviceVisibility()The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
clearDisplayTemplate()
public WidgetConfig.UIComponentField.Builder clearDisplayTemplate()The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}".
string display_template = 3;
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
clearField()
public WidgetConfig.UIComponentField.Builder clearField() Required. Registered field name. The format is field.abc.
string field = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public WidgetConfig.UIComponentField getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDeviceVisibility(int index)
public WidgetConfig.UIComponentField.DeviceVisibility getDeviceVisibility(int index)The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.DeviceVisibility |
The deviceVisibility at the given index. |
getDeviceVisibilityCount()
public int getDeviceVisibilityCount()The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of deviceVisibility. |
getDeviceVisibilityList()
public List<WidgetConfig.UIComponentField.DeviceVisibility> getDeviceVisibilityList()The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Returns | |
|---|---|
| Type | Description |
List<DeviceVisibility> |
A list containing the deviceVisibility. |
getDeviceVisibilityValue(int index)
public int getDeviceVisibilityValue(int index)The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of deviceVisibility at the given index. |
getDeviceVisibilityValueList()
public List<Integer> getDeviceVisibilityValueList()The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for deviceVisibility. |
getDisplayTemplate()
public String getDisplayTemplate()The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}".
string display_template = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The displayTemplate. |
getDisplayTemplateBytes()
public ByteString getDisplayTemplateBytes()The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}".
string display_template = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayTemplate. |
getField()
public String getField() Required. Registered field name. The format is field.abc.
string field = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The field. |
getFieldBytes()
public ByteString getFieldBytes() Required. Registered field name. The format is field.abc.
string field = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for field. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(WidgetConfig.UIComponentField other)
public WidgetConfig.UIComponentField.Builder mergeFrom(WidgetConfig.UIComponentField other)| Parameter | |
|---|---|
| Name | Description |
other |
WidgetConfig.UIComponentField |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WidgetConfig.UIComponentField.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WidgetConfig.UIComponentField.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
|
setDeviceVisibility(int index, WidgetConfig.UIComponentField.DeviceVisibility value)
public WidgetConfig.UIComponentField.Builder setDeviceVisibility(int index, WidgetConfig.UIComponentField.DeviceVisibility value)The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
WidgetConfig.UIComponentField.DeviceVisibilityThe deviceVisibility to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
setDeviceVisibilityValue(int index, int value)
public WidgetConfig.UIComponentField.Builder setDeviceVisibilityValue(int index, int value)The field visibility on different types of devices.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for deviceVisibility to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
setDisplayTemplate(String value)
public WidgetConfig.UIComponentField.Builder setDisplayTemplate(String value)The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}".
string display_template = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
setDisplayTemplateBytes(ByteString value)
public WidgetConfig.UIComponentField.Builder setDisplayTemplateBytes(ByteString value)The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}".
string display_template = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
setField(String value)
public WidgetConfig.UIComponentField.Builder setField(String value) Required. Registered field name. The format is field.abc.
string field = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe field to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |
setFieldBytes(ByteString value)
public WidgetConfig.UIComponentField.Builder setFieldBytes(ByteString value) Required. Registered field name. The format is field.abc.
string field = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for field to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UIComponentField.Builder |
This builder for chaining. |