The builder for Indexable
.
Convenience methods to construct indexables for common data types are available via
Indexables
.
Note that the following limitations are automatically applied:
- The name field must be set for the root
Indexable
. Refer to theIndexableBuilder.setName(String)
method. - The number of characters in a string value is limited to
Indexable.MAX_STRING_LENGTH
. - The number of values for a single field is limited to
Indexable.MAX_REPEATED_SIZE
. - The depth of nested values is limited to
Indexable.MAX_NESTING_DEPTH
. - The number of set fields on an
Indexable
is limited toIndexable.MAX_NUMBER_OF_FIELDS
. - The total byte size of an
Indexable
is limited toIndexable.MAX_BYTE_SIZE
.
Public Constructor Summary
Inherited Method Summary
final Indexable |
build()
Finalize building the object.
|
T | |
<S extends IndexableBuilder<?>> T | |
T |
put(String key,
Indexable...
values)
Sets one or multiple
Indexable
values for a property, replacing its previous values.
|
T | |
T | |
T | |
final T | |
T | |
final T | |
final <S extends IndexableBuilder<?>> T |
setIsPartOf(S... collections)
Sets the sub-group or collection that this Indexable is part of.
|
final T | |
T | |
final T | |
final T | |
final T |
Public Constructors
public Builder ()
The constructor.
public Builder (String type)
The constructor.
Parameters
type | The Schema.org type best describing this indexable unit (refer to schema.org for a list of standard types). |
---|