Class BetaPluginMarketplaceValidationReport.Builder
-
- All Implemented Interfaces:
public final class BetaPluginMarketplaceValidationReport.BuilderA builder for BetaPluginMarketplaceValidationReport.
-
-
Method Summary
-
-
Method Detail
-
commitSha
final BetaPluginMarketplaceValidationReport.Builder commitSha(String commitSha)
The full SHA of the commit that was validated: for a repository, the commit that was read; for an uploaded archive, the commit recorded in the archive's comment (as a Git host's download writes it; not verified), else null.
-
commitSha
final BetaPluginMarketplaceValidationReport.Builder commitSha(Optional<String> commitSha)
Alias for calling Builder.commitSha with
commitSha.orElse(null).
-
commitSha
final BetaPluginMarketplaceValidationReport.Builder commitSha(JsonField<String> commitSha)
Sets Builder.commitSha to an arbitrary JSON value.
You should usually call Builder.commitSha with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
manifestError
final BetaPluginMarketplaceValidationReport.Builder manifestError(String manifestError)
Set when nothing could be validated: the repository or archive could not be read, or marketplace.json is missing, malformed or over a limit. Null otherwise.
-
manifestError
final BetaPluginMarketplaceValidationReport.Builder manifestError(Optional<String> manifestError)
Alias for calling Builder.manifestError with
manifestError.orElse(null).
-
manifestError
final BetaPluginMarketplaceValidationReport.Builder manifestError(JsonField<String> manifestError)
Sets Builder.manifestError to an arbitrary JSON value.
You should usually call Builder.manifestError with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
manifestErrorCode
final BetaPluginMarketplaceValidationReport.Builder manifestErrorCode(String manifestErrorCode)
A stable identifier for
manifest_error; null when that is.
-
manifestErrorCode
final BetaPluginMarketplaceValidationReport.Builder manifestErrorCode(Optional<String> manifestErrorCode)
Alias for calling Builder.manifestErrorCode with
manifestErrorCode.orElse(null).
-
manifestErrorCode
final BetaPluginMarketplaceValidationReport.Builder manifestErrorCode(JsonField<String> manifestErrorCode)
Sets Builder.manifestErrorCode to an arbitrary JSON value.
You should usually call Builder.manifestErrorCode with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pluginErrors
final BetaPluginMarketplaceValidationReport.Builder pluginErrors(List<BetaPluginMarketplaceValidationPluginError> pluginErrors)
One entry per plugin a synchronization would skip entirely, keyed by the plugin's name in marketplace.json.
-
pluginErrors
final BetaPluginMarketplaceValidationReport.Builder pluginErrors(JsonField<List<BetaPluginMarketplaceValidationPluginError>> pluginErrors)
Sets Builder.pluginErrors to an arbitrary JSON value.
You should usually call Builder.pluginErrors with a well-typed
List<BetaPluginMarketplaceValidationPluginError>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pluginWarnings
final BetaPluginMarketplaceValidationReport.Builder pluginWarnings(List<BetaPluginMarketplaceValidationPluginWarnings> pluginWarnings)
One entry per plugin that would synchronize with some of its contents left out, keyed by the plugin's name in marketplace.json.
-
pluginWarnings
final BetaPluginMarketplaceValidationReport.Builder pluginWarnings(JsonField<List<BetaPluginMarketplaceValidationPluginWarnings>> pluginWarnings)
Sets Builder.pluginWarnings to an arbitrary JSON value.
You should usually call Builder.pluginWarnings with a well-typed
List<BetaPluginMarketplaceValidationPluginWarnings>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
ref
final BetaPluginMarketplaceValidationReport.Builder ref(String ref)
For a repository, the branch that was read by name: the one requested, or else the branch a synchronization of this repository is set to read. Null when no branch is named or set and the repository's default branch was read, for a request by commit SHA, and for an uploaded archive.
-
ref
final BetaPluginMarketplaceValidationReport.Builder ref(Optional<String> ref)
Alias for calling Builder.ref with
ref.orElse(null).
-
ref
final BetaPluginMarketplaceValidationReport.Builder ref(JsonField<String> ref)
Sets Builder.ref to an arbitrary JSON value.
You should usually call Builder.ref with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
totalPluginCount
final BetaPluginMarketplaceValidationReport.Builder totalPluginCount(Long totalPluginCount)
How many plugins marketplace.json declares; 0 when it could not be read.
-
totalPluginCount
final BetaPluginMarketplaceValidationReport.Builder totalPluginCount(JsonField<Long> totalPluginCount)
Sets Builder.totalPluginCount to an arbitrary JSON value.
You should usually call Builder.totalPluginCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaPluginMarketplaceValidationReport.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("plugin_marketplace_validation_report")This method is primarily for setting the field to an undocumented or not yet supported value.
-
valid
final BetaPluginMarketplaceValidationReport.Builder valid(Boolean valid)
True when marketplace.json is well-formed and no plugin would be skipped; warnings never make it false.
-
valid
final BetaPluginMarketplaceValidationReport.Builder valid(JsonField<Boolean> valid)
Sets Builder.valid to an arbitrary JSON value.
You should usually call Builder.valid with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaPluginMarketplaceValidationReport.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addPluginError
final BetaPluginMarketplaceValidationReport.Builder addPluginError(BetaPluginMarketplaceValidationPluginError pluginError)
Adds a single BetaPluginMarketplaceValidationPluginError to pluginErrors.
-
addPluginWarning
final BetaPluginMarketplaceValidationReport.Builder addPluginWarning(BetaPluginMarketplaceValidationPluginWarnings pluginWarning)
Adds a single BetaPluginMarketplaceValidationPluginWarnings to pluginWarnings.
-
putAdditionalProperty
final BetaPluginMarketplaceValidationReport.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaPluginMarketplaceValidationReport.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaPluginMarketplaceValidationReport.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaPluginMarketplaceValidationReport.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaPluginMarketplaceValidationReport build()
Returns an immutable instance of BetaPluginMarketplaceValidationReport.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.commitSha() .manifestError() .manifestErrorCode() .pluginErrors() .pluginWarnings() .ref() .totalPluginCount() .valid()
-
-
-
-