Class WidgetConfig.DataStoreUiConfig (0.99.0)

public static final class WidgetConfig.DataStoreUiConfig extends GeneratedMessage implements WidgetConfig.DataStoreUiConfigOrBuilder

UI component configuration for data store.

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

Inheritance

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

Static Fields

FACET_FIELD_FIELD_NUMBER

public static final int FACET_FIELD_FIELD_NUMBER
Field Value
Type Description
int

FIELDS_UI_COMPONENTS_MAP_FIELD_NUMBER

public static final int FIELDS_UI_COMPONENTS_MAP_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(WidgetConfig.DataStoreUiConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsFieldsUiComponentsMap(String key)

public boolean containsFieldsUiComponentsMap(String key)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getDefaultInstanceForType()

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

getFacetField(int index)

public WidgetConfig.FacetField getFacetField(int index)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.FacetField

getFacetFieldCount()

public int getFacetFieldCount()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
int

getFacetFieldList()

public List<WidgetConfig.FacetField> getFacetFieldList()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
List<FacetField>

getFacetFieldOrBuilder(int index)

public WidgetConfig.FacetFieldOrBuilder getFacetFieldOrBuilder(int index)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.FacetFieldOrBuilder

getFacetFieldOrBuilderList()

public List<? extends WidgetConfig.FacetFieldOrBuilder> getFacetFieldOrBuilderList()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder>

getFieldsUiComponentsMap() (deprecated)

public Map<String,WidgetConfig.UIComponentField> getFieldsUiComponentsMap()
Returns
Type Description
Map<String,UIComponentField>

getFieldsUiComponentsMapCount()

public int getFieldsUiComponentsMapCount()

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Returns
Type Description
int

getFieldsUiComponentsMapMap()

public Map<String,WidgetConfig.UIComponentField> getFieldsUiComponentsMapMap()

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Returns
Type Description
Map<String,UIComponentField>

getFieldsUiComponentsMapOrDefault(String key, WidgetConfig.UIComponentField defaultValue)

public WidgetConfig.UIComponentField getFieldsUiComponentsMapOrDefault(String key, WidgetConfig.UIComponentField defaultValue)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameters
Name Description
key String
defaultValue WidgetConfig.UIComponentField
Returns
Type Description
WidgetConfig.UIComponentField

getFieldsUiComponentsMapOrThrow(String key)

public WidgetConfig.UIComponentField getFieldsUiComponentsMapOrThrow(String key)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameter
Name Description
key String
Returns
Type Description
WidgetConfig.UIComponentField

getId()

public String getId()

Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.

string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.

string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getName()

public String getName()

The name of the data store. It should be data store resource name Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the data store. It should be data store resource name Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<WidgetConfig.DataStoreUiConfig> getParserForType()
Returns
Type Description
Parser<DataStoreUiConfig>
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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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