public class ResolveRefRequest extends Object
resolve
.
If it is known whether a requested ref is a branch or a tag, the caller is encouraged to specify the
type
to allow the SCM to optimize resolving the ref. If the ref type is unknown, the
type should be left null
.
StandardRefType
Modifier and Type | Class and Description |
---|---|
static class |
ResolveRefRequest.Builder |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getRefId()
Retrieves the ID to resolve, which may be
empty() to resolve the default branch. |
Repository |
getRepository()
Retrieves the repository to resolve the ref in.
|
Optional<RefType> |
getType()
Retrieves the type of ref to resolve, if it's known in advance.
|
@Nonnull public Optional<String> getRefId()
empty()
to resolve the default branch. If the ID is
empty()
, any type
specified is ignored.empty()
to resolve the repository's default branch@Nonnull public Repository getRepository()
@Nonnull public Optional<RefType> getType()
If getRefId()
is empty()
, this type hint is ignored and the default branch will
be resolved.
empty()
to allow resolving
a Branch
or a Tag
StandardRefType
Copyright © 2019 Atlassian. All rights reserved.