Class BetaPluginMarketplaceValidationReport
-
- All Implemented Interfaces:
public final class BetaPluginMarketplaceValidationReportThe outcome of validating plugin marketplace content: a report, not a stored object, so nothing in it can be retrieved afterwards.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaPluginMarketplaceValidationReport.BuilderA builder for BetaPluginMarketplaceValidationReport.
-
Method Summary
Modifier and Type Method Description final Optional<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. final Optional<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. final Optional<String>manifestErrorCode()A stable identifier for manifest_error; null when that is.final List<BetaPluginMarketplaceValidationPluginError>pluginErrors()One entry per plugin a synchronization would skip entirely, keyed by the plugin's name in marketplace.json. final 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. final Optional<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. final LongtotalPluginCount()How many plugins marketplace.json declares; 0 when it could not be read. final Booleanvalid()True when marketplace.json is well-formed and no plugin would be skipped; warnings never make it false. final JsonValue_type()Always plugin_marketplace_validation_report.final JsonField<String>_commitSha()Returns the raw JSON value of commitSha. final JsonField<String>_manifestError()Returns the raw JSON value of manifestError. final JsonField<String>_manifestErrorCode()Returns the raw JSON value of manifestErrorCode. final JsonField<List<BetaPluginMarketplaceValidationPluginError>>_pluginErrors()Returns the raw JSON value of pluginErrors. final JsonField<List<BetaPluginMarketplaceValidationPluginWarnings>>_pluginWarnings()Returns the raw JSON value of pluginWarnings. final JsonField<String>_ref()Returns the raw JSON value of ref. final JsonField<Long>_totalPluginCount()Returns the raw JSON value of totalPluginCount. final JsonField<Boolean>_valid()Returns the raw JSON value of valid. final Map<String, JsonValue>_additionalProperties()final BetaPluginMarketplaceValidationReport.BuildertoBuilder()final BetaPluginMarketplaceValidationReportvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaPluginMarketplaceValidationReport.Builderbuilder()Returns a mutable builder for constructing an instance of BetaPluginMarketplaceValidationReport. -
-
Method Detail
-
commitSha
final Optional<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.
-
manifestError
final Optional<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.
-
manifestErrorCode
final Optional<String> manifestErrorCode()
A stable identifier for
manifest_error; null when that is.
-
pluginErrors
final List<BetaPluginMarketplaceValidationPluginError> pluginErrors()
One entry per plugin a synchronization would skip entirely, keyed by the plugin's name in marketplace.json.
-
pluginWarnings
final 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.
-
ref
final Optional<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.
-
totalPluginCount
final Long totalPluginCount()
How many plugins marketplace.json declares; 0 when it could not be read.
-
valid
final Boolean valid()
True when marketplace.json is well-formed and no plugin would be skipped; warnings never make it false.
-
_type
final JsonValue _type()
Always
plugin_marketplace_validation_report.Expected to always return the following:
JsonValue.from("plugin_marketplace_validation_report")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_commitSha
final JsonField<String> _commitSha()
Returns the raw JSON value of commitSha.
Unlike commitSha, this method doesn't throw if the JSON field has an unexpected type.
-
_manifestError
final JsonField<String> _manifestError()
Returns the raw JSON value of manifestError.
Unlike manifestError, this method doesn't throw if the JSON field has an unexpected type.
-
_manifestErrorCode
final JsonField<String> _manifestErrorCode()
Returns the raw JSON value of manifestErrorCode.
Unlike manifestErrorCode, this method doesn't throw if the JSON field has an unexpected type.
-
_pluginErrors
final JsonField<List<BetaPluginMarketplaceValidationPluginError>> _pluginErrors()
Returns the raw JSON value of pluginErrors.
Unlike pluginErrors, this method doesn't throw if the JSON field has an unexpected type.
-
_pluginWarnings
final JsonField<List<BetaPluginMarketplaceValidationPluginWarnings>> _pluginWarnings()
Returns the raw JSON value of pluginWarnings.
Unlike pluginWarnings, this method doesn't throw if the JSON field has an unexpected type.
-
_ref
final JsonField<String> _ref()
Returns the raw JSON value of ref.
Unlike ref, this method doesn't throw if the JSON field has an unexpected type.
-
_totalPluginCount
final JsonField<Long> _totalPluginCount()
Returns the raw JSON value of totalPluginCount.
Unlike totalPluginCount, this method doesn't throw if the JSON field has an unexpected type.
-
_valid
final JsonField<Boolean> _valid()
Returns the raw JSON value of valid.
Unlike valid, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaPluginMarketplaceValidationReport.Builder toBuilder()
-
validate
final BetaPluginMarketplaceValidationReport validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaPluginMarketplaceValidationReport.Builder builder()
Returns a mutable builder for constructing an instance of BetaPluginMarketplaceValidationReport.
The following fields are required:
.commitSha() .manifestError() .manifestErrorCode() .pluginErrors() .pluginWarnings() .ref() .totalPluginCount() .valid()
-
-
-
-