AI-generated Key Takeaways
-
DataTypeCreateRequest.Builder is used to create new DataTypeInsertRequests.
-
You can add fields to the new data type using either a name and format or a Field object.
-
The name for the new data type must be set, following a specific format for private data types.
-
The
build()method finishes creating the request, but throws an IllegalStateException if the name or data fields are not specified.
Builder used to create new DataTypeInsertRequests.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| DataTypeCreateRequest.Builder | |
| DataTypeCreateRequest.Builder | |
| DataTypeCreateRequest |
build()
Finishes building and returns the request.
|
| DataTypeCreateRequest.Builder |
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public DataTypeCreateRequest.Builder addField (String name, int format)
Adds a new field with the specified name and format to the new data type.
public DataTypeCreateRequest.Builder addField (Field field)
Adds the specified field to the new data type.
public DataTypeCreateRequest build ()
Finishes building and returns the request.
Throws
| IllegalStateException | If name or data fields are not specified. |
|---|
public DataTypeCreateRequest.Builder setName (String name)
Set the name for the new data type. For private data types the name must have the
format packageName + "." + typeName, where packageName is the
application package name and typeName is a unique identifier of the
DataType
within the package.