Google is committed to advancing racial equity for Black communities. See how.

Class ConferenceDataBuilder

ConferenceDataBuilder

Builder for creating for ConferenceData objects.

Methods

MethodReturn typeBrief description
addConferenceParameter(conferenceParameter)ConferenceDataBuilderAdds a ConferenceParameter to this ConferenceData.
addEntryPoint(entryPoint)ConferenceDataBuilderAdds an EntryPoint to this ConferenceData.
build()ConferenceDataBuilds and validates the ConferenceData.
setConferenceId(conferenceId)ConferenceDataBuilderSets the conference ID of this ConferenceData.
setConferenceSolutionId(conferenceSolutionId)ConferenceDataBuilderSets the conference solution ID defined in the addon's manifest.
setError(conferenceError)ConferenceDataBuilderSets the ConferenceError of this ConferenceData, indicating that the conference was not successfully created.
setNotes(notes)ConferenceDataBuilderSets the additional notes of this ConferenceData, such as instructions from the administrator or legal notices.

Detailed documentation

addConferenceParameter(conferenceParameter)

Adds a ConferenceParameter to this ConferenceData. The maximum number of parameters per ConferenceData is 300.

Parameters

NameTypeDescription
conferenceParameterConferenceParameterThe parameter to add.

Return

ConferenceDataBuilder — This builder, for chaining.

Throws

Error — if the provided conference parameter is invalid or if too many conference parameters were added.


addEntryPoint(entryPoint)

Adds an EntryPoint to this ConferenceData. The maximum number of entry points per ConferenceData is 300.

Parameters

NameTypeDescription
entryPointEntryPointThe entry point to add.

Return

ConferenceDataBuilder — This builder, for chaining.

Throws

Error — if the provided entry point is invalid or if too many entry points were added.


build()

Builds and validates the ConferenceData.

Return

ConferenceData — the validated conference data

Throws

Error — if the constructed conference data is not valid.


setConferenceId(conferenceId)

Sets the conference ID of this ConferenceData. The maximum length for this field is 512 characters.

Parameters

NameTypeDescription
conferenceIdStringThe ID to set.

Return

ConferenceDataBuilder — This builder, for chaining.

Throws

Error — if the provided conference ID is too long.


setConferenceSolutionId(conferenceSolutionId)

Sets the conference solution ID defined in the addon's manifest. The value must be specified and populates conference's name and iconUrl values.

Note that the field is required for GSuite add-ons whereas it's ignored for Conferencing add-ons

Parameters

NameTypeDescription
conferenceSolutionIdStringThe ID matching the manifest.

Return

ConferenceDataBuilder — This builder, for chaining.

Throws

Error — if the provided conference solution id is too long. The maximum length for this field is 512 characters.


setError(conferenceError)

Sets the ConferenceError of this ConferenceData, indicating that the conference was not successfully created.

Parameters

NameTypeDescription
conferenceErrorConferenceErrorThe error to set.

Return

ConferenceDataBuilder — This builder, for chaining.

Throws

Error — if the provided error is invalid.


setNotes(notes)

Sets the additional notes of this ConferenceData, such as instructions from the administrator or legal notices. Can contain HTML. The maximum length for this field is 2048 characters.

Parameters

NameTypeDescription
notesStringThe additional notes to set.

Return

ConferenceDataBuilder — This builder, for chaining.

Throws

Error — if the provided notes are too long.