Class WidgetConfig.UIComponentField (0.99.0)

public static final class WidgetConfig.UIComponentField extends GeneratedMessage implements WidgetConfig.UIComponentFieldOrBuilder

Facet field that maps to a UI Component.

Protobuf type google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > WidgetConfig.UIComponentField

Static Fields

DEVICE_VISIBILITY_FIELD_NUMBER

public static final int DEVICE_VISIBILITY_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_TEMPLATE_FIELD_NUMBER

public static final int DISPLAY_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

FIELD_FIELD_NUMBER

public static final int FIELD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WidgetConfig.UIComponentField getDefaultInstance()
Returns
Type Description
WidgetConfig.UIComponentField

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static WidgetConfig.UIComponentField.Builder newBuilder()
Returns
Type Description
WidgetConfig.UIComponentField.Builder

newBuilder(WidgetConfig.UIComponentField prototype)

public static WidgetConfig.UIComponentField.Builder newBuilder(WidgetConfig.UIComponentField prototype)
Parameter
Name Description
prototype WidgetConfig.UIComponentField
Returns
Type Description
WidgetConfig.UIComponentField.Builder

parseDelimitedFrom(InputStream input)

public static WidgetConfig.UIComponentField parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UIComponentField parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WidgetConfig.UIComponentField parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UIComponentField parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetConfig.UIComponentField parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UIComponentField parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetConfig.UIComponentField parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UIComponentField parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WidgetConfig.UIComponentField parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UIComponentField parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WidgetConfig.UIComponentField parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UIComponentField parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UIComponentField
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WidgetConfig.UIComponentField> parser()
Returns
Type Description
Parser<UIComponentField>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public WidgetConfig.UIComponentField getDefaultInstanceForType()
Returns
Type Description
WidgetConfig.UIComponentField

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 int

The 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 int

The 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.

getParserForType()

public Parser<WidgetConfig.UIComponentField> getParserForType()
Returns
Type Description
Parser<UIComponentField>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WidgetConfig.UIComponentField.Builder newBuilderForType()
Returns
Type Description
WidgetConfig.UIComponentField.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected WidgetConfig.UIComponentField.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetConfig.UIComponentField.Builder
Overrides

toBuilder()

public WidgetConfig.UIComponentField.Builder toBuilder()
Returns
Type Description
WidgetConfig.UIComponentField.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException