Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
Field | Type | Label | Description |
lfs_pointers | LFSPointer | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
oid | string | Object ID (SHA1) of the blob we want to get |
|
limit | int64 | Maximum number of bytes we want to receive. Use '-1' to get the full blob no matter how big. |
Field | Type | Label | Description |
size | int64 | Blob size; present only in first response message |
|
data | bytes | Chunk of blob data |
|
oid | string | Object ID of the actual blob returned. Empty if no blob was found. |
Field | Type | Label | Description |
repository | Repository |
|
|
revision_paths | GetBlobsRequest.RevisionPath | repeated | Revision/Path pairs of the blobs we want to get. |
limit | int64 | Maximum number of bytes we want to receive. Use '-1' to get the full blobs no matter how big. |
Field | Type | Label | Description |
revision | string |
|
|
path | bytes |
|
Field | Type | Label | Description |
size | int64 | Blob size; present only on the first message per blob |
|
data | bytes | Chunk of blob data, could span over multiple messages. |
|
oid | string | Object ID of the current blob. Only present on the first message per blob. Empty if no blob was found. |
|
is_submodule | bool |
|
|
mode | int32 |
|
|
revision | string |
|
|
path | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
blob_ids | string | repeated |
|
Field | Type | Label | Description |
lfs_pointers | LFSPointer | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
|
limit | int32 |
|
|
not_in_all | bool | Note: When `not_in_all` is true, `not_in_refs` is ignored |
|
not_in_refs | bytes | repeated |
|
Field | Type | Label | Description |
lfs_pointers | LFSPointer | repeated |
|
Field | Type | Label | Description |
size | int64 |
|
|
data | bytes |
|
|
oid | string |
|
Field | Type | Label | Description |
size | int64 |
|
|
oid | string |
|
|
path | bytes |
|
Method Name | Request Type | Response Type | Description |
GetBlob | GetBlobRequest | GetBlobResponse | GetBlob returns the contents of a blob object referenced by its object ID. We use a stream to return a chunked arbitrarily large binary response |
GetBlobs | GetBlobsRequest | GetBlobsResponse | |
GetLFSPointers | GetLFSPointersRequest | GetLFSPointersResponse | |
GetNewLFSPointers | GetNewLFSPointersRequest | GetNewLFSPointersResponse | |
GetAllLFSPointers | GetAllLFSPointersRequest | GetAllLFSPointersResponse |
Field | Type | Label | Description |
repository | Repository |
|
|
object_map | bytes | A raw object-map file as generated by BFG: https://rtyley.github.io/bfg-repo-cleaner Each line in the file has two object SHAs, space-separated - the original SHA of the object, and the SHA after BFG has rewritten the object. |
Field | Type | Label | Description |
repository | Repository | Only available on the first message |
|
object_map | bytes | A raw object-map file as generated by BFG: https://rtyley.github.io/bfg-repo-cleaner Each line in the file has two object SHAs, space-separated - the original SHA of the object, and the SHA after BFG has rewritten the object. |
Field | Type | Label | Description |
entries | ApplyBfgObjectMapStreamResponse.Entry | repeated |
|
We send back each parsed entry in the request's object map so the client
can take action
Field | Type | Label | Description |
type | ObjectType |
|
|
old_oid | string |
|
|
new_oid | string |
|
Field | Type | Label | Description |
session_id | string |
|
Method Name | Request Type | Response Type | Description |
ApplyBfgObjectMap | ApplyBfgObjectMapRequest | ApplyBfgObjectMapResponse | Deprecated in favour of ApplyBfgObjectMapStream |
ApplyBfgObjectMapStream | ApplyBfgObjectMapStreamRequest | ApplyBfgObjectMapStreamResponse | |
CloseSession | CloseSessionRequest | CloseSessionResponse |
Field | Type | Label | Description |
repository | Repository |
|
|
ancestor_id | string |
|
|
child_id | string |
|
Field | Type | Label | Description |
value | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
Field | Type | Label | Description |
languages | CommitLanguagesResponse.Language | repeated |
|
Field | Type | Label | Description |
name | string |
|
|
share | float |
|
|
color | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
Field | Type | Label | Description |
oid | string | OID is the commit. Empty means not found |
|
additions | int32 |
|
|
deletions | int32 |
|
Field | Type | Label | Description |
repository | Repository |
|
|
from | bytes |
|
|
to | bytes |
|
Field | Type | Label | Description |
commits | GitCommit | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
|
offset | int32 |
|
|
limit | int32 |
|
|
path | bytes |
|
|
query | string |
|
One 'page' of the paginated response of CommitsByMessage
Field | Type | Label | Description |
commits | GitCommit | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
|
after | google.protobuf.Timestamp |
|
|
before | google.protobuf.Timestamp |
|
|
path | bytes |
|
|
max_count | int32 |
|
|
all | bool | all and revision are mutually exclusive |
Field | Type | Label | Description |
count | int32 |
|
Field | Type | Label | Description |
repository | Repository |
|
|
from | bytes |
|
|
to | bytes |
|
|
max_count | int32 |
|
Field | Type | Label | Description |
left_count | int32 |
|
|
right_count | int32 |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_id | string |
|
Either of the 'signature' and 'signed_text' fields may be present. It
is up to the caller to stitch them together.
Field | Type | Label | Description |
signature | bytes |
|
|
signed_text | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
shas | bytes | repeated |
|
Field | Type | Label | Description |
shas | bytes | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes | When nil, return all commits reachable by any branch in the repo |
|
max_count | int32 |
|
|
skip | int32 |
|
|
order | FindAllCommitsRequest.Order |
|
A single 'page' of the result set
Field | Type | Label | Description |
commits | GitCommit | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
Field | Type | Label | Description |
commit | GitCommit | commit is nil when the commit was not found |
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
|
limit | int32 |
|
|
offset | int32 |
|
|
paths | bytes | repeated |
|
follow | bool |
|
|
skip_merges | bool |
|
|
disable_walk | bool |
|
|
after | google.protobuf.Timestamp |
|
|
before | google.protobuf.Timestamp |
|
|
all | bool | all and revision are mutually exclusive |
A single 'page' of the result set
Field | Type | Label | Description |
commits | GitCommit | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_ids | string | repeated |
|
Field | Type | Label | Description |
commit_id | string | Only present for a new commit message |
|
message | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_ids | string | repeated |
|
Field | Type | Label | Description |
commit_id | string | Only present for a new commit signature data. |
|
signature | bytes | See ExtractCommitSignatureResponse above for how these fields should be handled. |
|
signed_text | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
|
path | bytes |
|
|
recursive | bool |
|
Field | Type | Label | Description |
entries | TreeEntry | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
|
path | bytes |
|
Field | Type | Label | Description |
commit | GitCommit | commit is nil when the commit was not found |
Field | Type | Label | Description |
repository | Repository |
|
|
oid | string | repeated |
|
Field | Type | Label | Description |
commits | GitCommit | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
ref_names | bytes | repeated |
|
Field | Type | Label | Description |
commits | GitCommit | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
A single 'page' of the paginated response
Field | Type | Label | Description |
paths | bytes | repeated | Remember to force encoding utf-8 on the client side |
Field | Type | Label | Description |
repository | Repository |
|
|
revision | string |
|
|
path | bytes |
|
|
limit | int32 | limit == -1 will get the last commit for all paths |
|
offset | int32 |
|
Field | Type | Label | Description |
commits | ListLastCommitsForTreeResponse.CommitForTree | repeated |
|
Field | Type | Label | Description |
commit | GitCommit |
|
|
path_bytes | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
|
path | bytes |
|
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
oid | string | OID of the object this tree entry points to |
|
root_oid | string | OID of the tree attached to commit_oid |
|
path | bytes | Path relative to repository root |
|
type | TreeEntry.EntryType |
|
|
mode | int32 | File mode e.g. 0644 |
|
commit_oid | string | The commit object via which this entry was retrieved |
|
flat_path | bytes | Relative path of the first subdir that doesn't have only one directory descendant |
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes | commit ID or refname |
|
path | bytes | entry path relative to repository root |
|
limit | int64 |
|
Field | Type | Label | Description |
type | TreeEntryResponse.ObjectType |
|
|
oid | string | SHA1 object ID |
|
size | int64 |
|
|
mode | int32 | file mode |
|
data | bytes | raw object contents |
Name | Number | Description |
NONE | 0 | |
TOPO | 1 | |
DATE | 2 |
TODO: Replace this enum with ObjectType in shared.proto
Name | Number | Description |
BLOB | 0 | |
TREE | 1 | |
COMMIT | 3 |
TODO: Replace this enum with ObjectType in shared.proto
Name | Number | Description |
COMMIT | 0 | |
BLOB | 1 | |
TREE | 2 | |
TAG | 3 |
Field | Type | Label | Description |
header | ConflictFileHeader |
|
|
content | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_oid | string |
|
|
their_path | bytes |
|
|
our_path | bytes |
|
|
our_mode | int32 |
|
Field | Type | Label | Description |
repository | Repository |
|
|
our_commit_oid | string |
|
|
their_commit_oid | string |
|
Field | Type | Label | Description |
files | ConflictFile | repeated |
|
Field | Type | Label | Description |
header | ResolveConflictsRequestHeader |
|
|
files_json | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
our_commit_oid | string |
|
|
target_repository | Repository |
|
|
their_commit_oid | string |
|
|
source_branch | bytes |
|
|
target_branch | bytes |
|
|
commit_message | bytes |
|
|
user | User |
|
Field | Type | Label | Description |
resolution_error | string |
|
Method Name | Request Type | Response Type | Description |
ListConflictFiles | ListConflictFilesRequest | ListConflictFilesResponse | |
ResolveConflicts | ResolveConflictsRequest | ResolveConflictsResponse |
Field | Type | Label | Description |
from_path | bytes |
|
|
to_path | bytes |
|
|
from_id | string | Blob ID as returned via `git diff --full-index` |
|
to_id | string |
|
|
old_mode | int32 |
|
|
new_mode | int32 |
|
Field | Type | Label | Description |
repository | Repository |
|
|
left_commit_id | string |
|
|
right_commit_id | string |
|
|
paths | bytes | repeated |
|
Field | Type | Label | Description |
deltas | CommitDelta | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
left_commit_id | string |
|
|
right_commit_id | string |
|
|
ignore_whitespace_change | bool |
|
|
paths | bytes | repeated |
|
collapse_diffs | bool |
|
|
enforce_limits | bool |
|
|
max_files | int32 | These limits are only enforced when enforce_limits == true. |
|
max_lines | int32 |
|
|
max_bytes | int32 |
|
|
max_patch_bytes | int32 | Limitation of a single diff patch, patches surpassing this limit are pruned by default. If this is 0 you will get back empty patches. |
|
safe_max_files | int32 | These limits are only enforced if collapse_diffs == true. |
|
safe_max_lines | int32 |
|
|
safe_max_bytes | int32 |
|
A CommitDiffResponse corresponds to a single changed file in a commit.
Field | Type | Label | Description |
from_path | bytes |
|
|
to_path | bytes |
|
|
from_id | string | Blob ID as returned via `git diff --full-index` |
|
to_id | string |
|
|
old_mode | int32 |
|
|
new_mode | int32 |
|
|
binary | bool |
|
|
raw_patch_data | bytes |
|
|
end_of_patch | bool |
|
|
overflow_marker | bool | Indicates the diff file at which we overflow according to the limitations sent, in which case only this attribute will be set. |
|
collapsed | bool | Indicates the patch surpassed a "safe" limit and was therefore pruned, but the client may still request the full patch on a separate request. |
|
too_large | bool | Indicates the patch was pruned since it surpassed a hard limit, and can therefore not be expanded. |
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
path | bytes |
|
|
additions | int32 |
|
|
deletions | int32 |
|
Field | Type | Label | Description |
repository | Repository |
|
|
left_commit_id | string |
|
|
right_commit_id | string |
|
Field | Type | Label | Description |
stats | DiffStats | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
left_commit_id | string |
|
|
right_commit_id | string |
|
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
left_commit_id | string |
|
|
right_commit_id | string |
|
Field | Type | Label | Description |
data | bytes |
|
Method Name | Request Type | Response Type | Description |
CommitDiff | CommitDiffRequest | CommitDiffResponse | Returns stream of CommitDiffResponse with patches chunked over messages |
CommitDelta | CommitDeltaRequest | CommitDeltaResponse | Return a stream so we can divide the response in chunks of deltas |
CommitPatch | CommitPatchRequest | CommitPatchResponse | |
RawDiff | RawDiffRequest | RawDiffResponse | |
RawPatch | RawPatchRequest | RawPatchResponse | |
DiffStats | DiffStatsRequest | DiffStatsResponse |
Field | Type | Label | Description |
storage_name | string |
|
|
name | string |
|
Field | Type | Label | Description |
storage_name | string |
|
|
name | string |
|
Field | Type | Label | Description |
exists | bool |
|
Field | Type | Label | Description |
storage_name | string |
|
|
name | string |
|
Field | Type | Label | Description |
storage_name | string |
|
|
from | string |
|
|
to | string |
|
Method Name | Request Type | Response Type | Description |
AddNamespace | AddNamespaceRequest | AddNamespaceResponse | |
RemoveNamespace | RemoveNamespaceRequest | RemoveNamespaceResponse | |
RenameNamespace | RenameNamespaceRequest | RenameNamespaceResponse | |
NamespaceExists | NamespaceExistsRequest | NamespaceExistsResponse |
Creates an object pool from the repository. The client is responsible for
joining this pool later with this repository.
Field | Type | Label | Description |
object_pool | ObjectPool |
|
|
origin | Repository |
|
Removes the directory from disk, caller is responsible for leaving the object
pool before calling this RPC
Field | Type | Label | Description |
object_pool | ObjectPool |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
origin | Repository |
|
|
object_pool | ObjectPool |
|
|
repack | bool |
|
Field | Type | Label | Description |
object_pool | ObjectPool |
|
|
repository | Repository |
|
Field | Type | Label | Description |
repository | Repository |
|
This RPC doesn't require the ObjectPool as it will remove the alternates file
from the pool participant. The caller is responsible no data loss occurs.
Field | Type | Label | Description |
repository | Repository |
|
|
object_pool | ObjectPool |
|
Method Name | Request Type | Response Type | Description |
CreateObjectPool | CreateObjectPoolRequest | CreateObjectPoolResponse | |
DeleteObjectPool | DeleteObjectPoolRequest | DeleteObjectPoolResponse | |
LinkRepositoryToObjectPool | LinkRepositoryToObjectPoolRequest | LinkRepositoryToObjectPoolResponse | Repositories are assumed to be stored on the same disk |
UnlinkRepositoryFromObjectPool | UnlinkRepositoryFromObjectPoolRequest | UnlinkRepositoryFromObjectPoolResponse | |
ReduplicateRepository | ReduplicateRepositoryRequest | ReduplicateRepositoryResponse | |
DisconnectGitAlternates | DisconnectGitAlternatesRequest | DisconnectGitAlternatesResponse | |
FetchIntoObjectPool | FetchIntoObjectPoolRequest | FetchIntoObjectPoolResponse |
Field | Type | Label | Description |
commit_id | string | If this string is non-empty the branch has been updated. |
|
repo_created | bool | Used for cache invalidation in GitLab |
|
branch_created | bool | Used for cache invalidation in GitLab |
Field | Type | Label | Description |
header | UserApplyPatchRequest.Header |
|
|
patches | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
target_branch | bytes |
|
Field | Type | Label | Description |
branch_update | OperationBranchUpdate |
|
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
commit | GitCommit |
|
|
branch_name | bytes |
|
|
message | bytes |
|
|
start_branch_name | bytes |
|
|
start_repository | Repository |
|
Field | Type | Label | Description |
branch_update | OperationBranchUpdate |
|
|
create_tree_error | string |
|
|
commit_error | string |
|
|
pre_receive_error | string |
|
Field | Type | Label | Description |
header | UserCommitFilesActionHeader |
|
|
content | bytes |
|
Field | Type | Label | Description |
action | UserCommitFilesActionHeader.ActionType |
|
|
file_path | bytes |
|
|
previous_path | bytes |
|
|
base64_content | bool |
|
|
execute_filemode | bool |
|
|
infer_content | bool | Move actions that change the file path, but not its content, should set infer_content to true instead of populating the content field. Ignored for other action types. |
Field | Type | Label | Description |
header | UserCommitFilesRequestHeader | For each request stream there should be first a request with a header and then n requests with actions |
|
action | UserCommitFilesAction |
|
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
branch_name | bytes |
|
|
commit_message | bytes |
|
|
commit_author_name | bytes |
|
|
commit_author_email | bytes |
|
|
start_branch_name | bytes |
|
|
start_repository | Repository |
|
|
force | bool |
|
|
start_sha | string |
|
Field | Type | Label | Description |
branch_update | OperationBranchUpdate |
|
|
index_error | string |
|
|
pre_receive_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
branch_name | bytes |
|
|
user | User |
|
|
start_point | bytes |
|
Field | Type | Label | Description |
branch | Branch |
|
|
pre_receive_error | string | Error returned by the pre-receive hook. If no error was thrown, it's the empty string ("") |
Field | Type | Label | Description |
repository | Repository |
|
|
tag_name | bytes |
|
|
user | User |
|
|
target_revision | bytes |
|
|
message | bytes |
|
Field | Type | Label | Description |
tag | Tag |
|
|
exists | bool |
|
|
pre_receive_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
branch_name | bytes |
|
|
user | User |
|
Field | Type | Label | Description |
pre_receive_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
tag_name | bytes |
|
|
user | User |
|
Field | Type | Label | Description |
pre_receive_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
commit_id | string |
|
|
branch | bytes |
|
Field | Type | Label | Description |
branch_update | OperationBranchUpdate |
|
|
pre_receive_error | string |
|
Field | Type | Label | Description |
repository | Repository | First message |
|
user | User |
|
|
commit_id | string |
|
|
branch | bytes |
|
|
message | bytes |
|
|
apply | bool | Second message Tell the server to apply the merge to the branch |
Field | Type | Label | Description |
commit_id | string | First message The merge commit the branch will be updated to. The caller can still abort the merge. |
|
branch_update | OperationBranchUpdate | Second message If set, the merge has been applied to the branch. |
|
pre_receive_error | string |
|
Field | Type | Label | Description |
repository | Repository | UserMergeRef creates a merge commit and updates target_ref to point to that new commit. The first parent of the merge commit (the main line) is taken from first_parent_ref. The second parent is specified by its commit ID in source_sha. If target_ref already exists it will be overwritten. |
|
user | User |
|
|
source_sha | string |
|
|
branch | bytes | branch is deprecated in favor of `first_parent_ref`. |
|
target_ref | bytes |
|
|
message | bytes |
|
|
first_parent_ref | bytes |
|
Field | Type | Label | Description |
commit_id | string |
|
|
pre_receive_error | string |
|
Field | Type | Label | Description |
header | UserRebaseConfirmableRequest.Header | For each request stream there must be first a request with a header containing details about the rebase to perform. |
|
apply | bool | A second request must be made to confirm that the rebase should be applied to the branch. |
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
rebase_id | string |
|
|
branch | bytes |
|
|
branch_sha | string |
|
|
remote_repository | Repository |
|
|
remote_branch | bytes |
|
Field | Type | Label | Description |
rebase_sha | string | The first response will contain the rebase commit the branch will be updated to. The caller can still abort the rebase. |
|
rebase_applied | bool | The second response confirms that the rebase has been applied to the branch. |
|
pre_receive_error | string |
|
|
git_error | string |
|
DEPRECATED: https://gitlab.com/gitlab-org/gitaly/issues/1628
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
rebase_id | string |
|
|
branch | bytes |
|
|
branch_sha | string |
|
|
remote_repository | Repository |
|
|
remote_branch | bytes |
|
DEPRECATED: https://gitlab.com/gitlab-org/gitaly/issues/1628
Field | Type | Label | Description |
rebase_sha | string |
|
|
pre_receive_error | string |
|
|
git_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
commit | GitCommit |
|
|
branch_name | bytes |
|
|
message | bytes |
|
|
start_branch_name | bytes |
|
|
start_repository | Repository |
|
Field | Type | Label | Description |
branch_update | OperationBranchUpdate |
|
|
create_tree_error | string |
|
|
commit_error | string |
|
|
pre_receive_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
squash_id | string |
|
|
branch | bytes |
|
|
start_sha | string |
|
|
end_sha | string |
|
|
author | User |
|
|
commit_message | bytes |
|
Field | Type | Label | Description |
squash_sha | string |
|
|
git_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
branch_name | bytes |
|
|
user | User |
|
|
newrev | bytes |
|
|
oldrev | bytes |
|
Field | Type | Label | Description |
pre_receive_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
user | User |
|
|
commit_sha | string |
|
|
branch | bytes |
|
|
submodule | bytes |
|
|
commit_message | bytes |
|
Field | Type | Label | Description |
branch_update | OperationBranchUpdate |
|
|
pre_receive_error | string |
|
|
commit_error | string |
|
Name | Number | Description |
CREATE | 0 | |
CREATE_DIR | 1 | |
UPDATE | 2 | |
MOVE | 3 | |
DELETE | 4 | |
CHMOD | 5 |
Field | Type | Label | Description |
repository | Repository |
|
|
name | bytes |
|
|
start_point | bytes |
|
Field | Type | Label | Description |
status | CreateBranchResponse.Status |
|
|
branch | Branch |
|
Field | Type | Label | Description |
repository | Repository |
|
|
name | bytes |
|
Not clear if we need to do status signaling; we can add fields later.
Field | Type | Label | Description |
repository | Repository |
|
|
except_with_prefix | bytes | repeated | The following two fields are mutually exclusive |
refs | bytes | repeated |
|
Field | Type | Label | Description |
git_error | string |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
names | bytes | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
merged_only | bool | Only return branches that are merged into root ref |
|
merged_branches | bytes | repeated | If merged_only is true, this is a list of branches from which we return those merged into the root ref |
Field | Type | Label | Description |
branches | FindAllBranchesResponse.Branch | repeated |
|
Field | Type | Label | Description |
name | bytes |
|
|
target | GitCommit |
|
Field | Type | Label | Description |
repository | Repository |
|
|
remote_name | string |
|
Field | Type | Label | Description |
branches | Branch | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
names | bytes | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
tags | Tag | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
name | bytes | Name can be 'master' but also 'refs/heads/master' |
Field | Type | Label | Description |
branch | Branch |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
name | bytes |
|
Field | Type | Label | Description |
name | bytes |
|
|
bytes |
|
||
date | google.protobuf.Timestamp |
|
Field | Type | Label | Description |
name | bytes |
|
|
commit_id | string |
|
|
commit_subject | bytes |
|
|
commit_author | FindLocalBranchCommitAuthor |
|
|
commit_committer | FindLocalBranchCommitAuthor |
|
Field | Type | Label | Description |
repository | Repository |
|
|
sort_by | FindLocalBranchesRequest.SortBy |
|
Field | Type | Label | Description |
branches | FindLocalBranchResponse | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_id | string | Require that the resulting ref contains this commit as an ancestor |
|
prefix | bytes | Example prefix: "refs/heads/". Type bytes because that is the type of ref names. |
Field | Type | Label | Description |
name | bytes | Example name: "refs/heads/master". Cannot assume UTF8, so the type is bytes. |
Field | Type | Label | Description |
repository | Repository |
|
|
tag_ids | string | repeated |
|
Field | Type | Label | Description |
message | bytes |
|
|
tag_id | string | Only present for a new tag message |
Field | Type | Label | Description |
repository | Repository |
|
|
commit_id | string |
|
|
limit | uint32 | Limit the number of tag names to be returned If the limit is set to zero, all items will be returned |
Field | Type | Label | Description |
branch_names | bytes | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_id | string |
|
|
limit | uint32 | Limit the number of revs to be returned fro mgit-rev-list If the limit is set to zero, all items will be returned |
Field | Type | Label | Description |
new_blob_objects | NewBlobObject | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_id | string |
|
Field | Type | Label | Description |
commits | GitCommit | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_id | string |
|
|
limit | uint32 | Limit the number of tag names to be returned If the limit is set to zero, all items will be returned |
Field | Type | Label | Description |
tag_names | bytes | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
all_refs | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
ref | bytes | Any ref, e.g. 'refs/heads/master' or 'refs/tags/v1.0.1'. Must start with 'refs/'. |
Field | Type | Label | Description |
value | bool |
|
Name | Number | Description |
OK | 0 | |
ERR_EXISTS | 1 | |
ERR_INVALID | 2 | |
ERR_INVALID_START_POINT | 3 |
Name | Number | Description |
NAME | 0 | |
UPDATED_ASC | 1 | |
UPDATED_DESC | 2 |
Field | Type | Label | Description |
repository | Repository |
|
|
name | string |
|
|
url | string |
|
|
mirror_refmaps | string | repeated | If any, the remote is configured as a mirror with those mappings |
Field | Type | Label | Description |
repository | Repository |
|
|
remote_repository | Repository |
|
Field | Type | Label | Description |
result | bool |
|
Field | Type | Label | Description |
remote | string |
|
This migth throw a GRPC Unavailable code, to signal the request failure
is transient.
Field | Type | Label | Description |
exists | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
remote | string |
|
Field | Type | Label | Description |
ref | string |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
remotes | ListRemotesResponse.Remote | repeated |
|
Field | Type | Label | Description |
name | string |
|
|
fetch_url | string |
|
|
push_url | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
name | string |
|
Field | Type | Label | Description |
result | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
ref_name | string |
|
|
only_branches_matching | bytes | repeated |
|
ssh_key | string |
|
|
known_hosts | string |
|
Method Name | Request Type | Response Type | Description |
AddRemote | AddRemoteRequest | AddRemoteResponse | |
FetchInternalRemote | FetchInternalRemoteRequest | FetchInternalRemoteResponse | |
RemoveRemote | RemoveRemoteRequest | RemoveRemoteResponse | |
UpdateRemoteMirror | UpdateRemoteMirrorRequest | UpdateRemoteMirrorResponse | |
FindRemoteRepository | FindRemoteRepositoryRequest | FindRemoteRepositoryResponse | |
FindRemoteRootRef | FindRemoteRootRefRequest | FindRemoteRootRefResponse | |
ListRemotes | ListRemotesRequest | ListRemotesResponse |
Field | Type | Label | Description |
repository | Repository |
|
|
revision | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
checksum | string |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
repository | Repository |
|
|
pool | ObjectPool |
|
|
source_repository | Repository |
|
Field | Type | Label | Description |
repository | Repository |
|
|
pool | ObjectPool |
|
|
remote | Remote |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
source_repository | Repository |
|
Field | Type | Label | Description |
repository | Repository | Only available on the first message |
|
data | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
http_url | string |
|
|
http_auth | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
url | string |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
repository | Repository |
|
|
keys | string | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
remote | Remote |
|
|
timeout | int32 |
|
Field | Type | Label | Description |
repository | Repository |
|
|
remote | string |
|
|
force | bool |
|
|
no_tags | bool |
|
|
timeout | int32 |
|
|
ssh_key | string |
|
|
known_hosts | string |
|
|
no_prune | bool |
|
|
remote_params | Remote |
|
Field | Type | Label | Description |
repository | Repository |
|
|
source_repository | Repository |
|
|
source_branch | bytes |
|
|
target_ref | bytes |
|
Field | Type | Label | Description |
result | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
license_short_name | string |
|
Field | Type | Label | Description |
repository | Repository |
|
|
revisions | bytes | repeated | We use a repeated field because rugged supports finding a base for more than 2 revisions, so if we needed that in the future we don't need to change the protocol. |
Field | Type | Label | Description |
base | string |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
error | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
create_bitmap | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
commit_id | string |
|
|
prefix | string |
|
|
format | GetArchiveRequest.Format |
|
|
path | bytes |
|
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
attributes | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
size | int64 | Object directory size in kilobytes |
Field | Type | Label | Description |
repository | Repository |
|
|
from_revision | string |
|
|
to_revision | string |
|
Field | Type | Label | Description |
raw_changes | GetRawChangesResponse.RawChange | repeated |
|
Field | Type | Label | Description |
blob_id | string |
|
|
size | int64 |
|
|
new_path | string | use fields 9 and 10 in place of 3 and 4 (respectively) |
|
old_path | string |
|
|
operation | GetRawChangesResponse.RawChange.Operation |
|
|
raw_operation | string |
|
|
old_mode | int32 |
|
|
new_mode | int32 |
|
|
new_path_bytes | bytes | the following fields, 9 and 10, will eventually replace 3 and 4 |
|
old_path_bytes | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
value | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
rebase_id | string |
|
Field | Type | Label | Description |
in_progress | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
squash_id | string |
|
Field | Type | Label | Description |
in_progress | bool |
|
Field | Type | Label | Description |
source_repository | Repository |
|
|
target_repository | Repository |
|
|
object_pool | ObjectPool |
|
Field | Type | Label | Description |
url | string |
|
|
name | string |
|
|
http_authorization_header | string |
|
|
mirror_refmaps | string | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
create_bitmap | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
exists | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
size | int64 | Repository size in kilobytes |
Field | Type | Label | Description |
repository | Repository |
|
|
data | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
query | string |
|
|
ref | bytes |
|
|
chunked_response | bool |
|
Field | Type | Label | Description |
matches | bytes | repeated |
|
match_data | bytes |
|
|
end_of_match | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
query | string |
|
|
ref | bytes |
|
Field | Type | Label | Description |
files | bytes | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
entries | SetConfigRequest.Entry | repeated |
|
Field | Type | Label | Description |
key | string |
|
|
value_str | string |
|
|
value_int32 | int32 |
|
|
value_bool | bool |
|
Field | Type | Label | Description |
repository | Repository |
|
|
full_path | string |
|
Field | Type | Label | Description |
error | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
ref | bytes |
|
|
revision | bytes |
|
|
old_revision | bytes |
|
|
force | bool |
|
Name | Number | Description |
ZIP | 0 | |
TAR | 1 | |
TAR_GZ | 2 | |
TAR_BZ2 | 3 |
Field | Type | Label | Description |
server_version | string |
|
|
git_version | string |
|
|
storage_statuses | ServerInfoResponse.StorageStatus | repeated |
|
Field | Type | Label | Description |
storage_name | string |
|
|
readable | bool |
|
|
writeable | bool |
|
|
fs_type | string |
|
|
filesystem_id | string |
|
Method Name | Request Type | Response Type | Description |
ServerInfo | ServerInfoRequest | ServerInfoResponse |
Corresponds to Gitlab::Git::Branch
Field | Type | Label | Description |
name | bytes |
|
|
target_commit | GitCommit |
|
Field | Type | Label | Description |
name | bytes |
|
|
bytes |
|
||
date | google.protobuf.Timestamp |
|
Field | Type | Label | Description |
value | int32 |
|
Corresponds to Gitlab::Git::Commit
Field | Type | Label | Description |
id | string |
|
|
subject | bytes |
|
|
body | bytes |
|
|
author | CommitAuthor |
|
|
committer | CommitAuthor |
|
|
parent_ids | string | repeated |
|
body_size | int64 | If body exceeds a certain threshold, it will be nullified, but its size will be set in body_size so we can know if a commit had a body in the first place. |
Field | Type | Label | Description |
repository | Repository |
|
Field | Type | Label | Description |
op | OperationMsg.Operation |
|
|
scope_level | OperationMsg.Scope | Scope level indicates how a mutating RPC affects Gitaly: - REPOSITORY: mutation is scoped to only a single repo - SERVER: mutation affects the entire server and potentially all repos |
|
target_repository_field | string | If this operation modifies a repository, this field will specify the location of the Repository field within the request message. The field is specified in an OID style formatted string. For example, if the target repository is at the top level of a message at field 1, then the string will be "1" If the target repository is nested deeper in the message, then it will be necessary to specify a nested OID string. For example, the following OID refers to a target repo field nested in a one-of field, both at field one: "1.1" |
Field | Type | Label | Description |
storage_name | string |
|
|
relative_path | string |
|
|
git_object_directory | string | Sets the GIT_OBJECT_DIRECTORY envvar on git commands to the value of this field. It influences the object storage directory the SHA1 directories are created underneath. |
|
git_alternate_object_directories | string | repeated | Sets the GIT_ALTERNATE_OBJECT_DIRECTORIES envvar on git commands to the values of this field. It influences the list of Git object directories which can be used to search for Git objects. |
gl_repository | string | Used in callbacks to GitLab so that it knows what repository the event is associated with. May be left empty on RPC's that do not perform callbacks. During project creation, `gl_repository` may not be known. |
|
gl_project_path | string | The human-readable GitLab project path (e.g. gitlab-org/gitlab-ce). When hashed storage is use, this associates a project path with its path on disk. The name can change over time (e.g. when a project is renamed). This is primarily used for logging/debugging at the moment. |
Field | Type | Label | Description |
name | bytes |
|
|
id | string |
|
|
target_commit | GitCommit |
|
|
message | bytes | If message exceeds a certain threshold, it will be nullified, but its size will be set in message_size so we can know if a tag had a message in the first place. |
|
message_size | int64 |
|
|
tagger | CommitAuthor |
|
Field | Type | Label | Description |
gl_id | string |
|
|
name | bytes |
|
|
bytes |
|
||
gl_username | string |
|
Name | Number | Description |
UNKNOWN | 0 | |
COMMIT | 1 | |
BLOB | 2 | |
TREE | 3 | |
TAG | 4 |
Name | Number | Description |
UNKNOWN | 0 | |
MUTATOR | 1 | |
ACCESSOR | 2 |
Name | Number | Description |
REPOSITORY | 0 | |
SERVER | 1 |
Extension | Type | Base | Number | Description |
op_type | OperationMsg | .google.protobuf.MethodOptions | 82303 | Random high number.. |
Field | Type | Label | Description |
repository | Repository |
|
|
git_config_options | string | repeated | Parameters to use with git -c (key=value pairs) |
git_protocol | string | Git protocol version |
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
repository | Repository | repository should only be present in the first message of the stream |
|
data | bytes | Raw data to be copied to stdin of 'git receive-pack' |
|
gl_id | string | gl_id, gl_repository, and gl_username become env variables, used by the Git {pre,post}-receive hooks. They should only be present in the first message of the stream. |
|
gl_repository | string |
|
|
gl_username | string |
|
|
git_protocol | string | Git protocol version |
|
git_config_options | string | repeated | Parameters to use with git -c (key=value pairs) |
Field | Type | Label | Description |
data | bytes | Raw data from stdout of 'git receive-pack' |
Field | Type | Label | Description |
repository | Repository | repository should only be present in the first message of the stream |
|
data | bytes | Raw data to be copied to stdin of 'git upload-pack' |
|
git_config_options | string | repeated | Parameters to use with git -c (key=value pairs) |
git_protocol | string | Git protocol version |
Field | Type | Label | Description |
data | bytes | Raw data from stdout of 'git upload-pack' |
Method Name | Request Type | Response Type | Description |
InfoRefsUploadPack | InfoRefsRequest | InfoRefsResponse | The response body for GET /info/refs?service=git-upload-pack Will be invoked when the user executes a `git fetch`, meaning the server will upload the packs to that user. The user doesn't upload new objects. |
InfoRefsReceivePack | InfoRefsRequest | InfoRefsResponse | The response body for GET /info/refs?service=git-receive-pack Will be invoked when the user executes a `git push`, meaning the server will receive new objects in the pack from the user. |
PostUploadPack | PostUploadPackRequest | PostUploadPackResponse | Request and response body for POST /upload-pack |
PostReceivePack | PostReceivePackRequest | PostReceivePackResponse | Request and response body for POST /receive-pack |
Field | Type | Label | Description |
repository | Repository | 'repository' must be present in the first message. |
|
stdin | bytes | A chunk of raw data to be copied to 'git upload-pack' standard input |
|
gl_id | string | Contents of GL_ID, GL_REPOSITORY, and GL_USERNAME environment variables for 'git receive-pack' |
|
gl_repository | string |
|
|
gl_username | string |
|
|
git_protocol | string | Git protocol version |
|
git_config_options | string | repeated | Parameters to use with git -c (key=value pairs) |
Field | Type | Label | Description |
stdout | bytes | A chunk of raw data from 'git receive-pack' standard output |
|
stderr | bytes | A chunk of raw data from 'git receive-pack' standard error |
|
exit_status | ExitStatus | This field may be nil. This is intentional: only when the remote command has finished can we return its exit status. |
Field | Type | Label | Description |
repository | Repository | 'repository' must be present in the first message. |
|
stdin | bytes | A chunk of raw data to be copied to 'git upload-archive' standard input |
Field | Type | Label | Description |
stdout | bytes | A chunk of raw data from 'git upload-archive' standard output |
|
stderr | bytes | A chunk of raw data from 'git upload-archive' standard error |
|
exit_status | ExitStatus | This value will only be set on the last message |
Field | Type | Label | Description |
repository | Repository | 'repository' must be present in the first message. |
|
stdin | bytes | A chunk of raw data to be copied to 'git upload-pack' standard input |
|
git_config_options | string | repeated | Parameters to use with git -c (key=value pairs) |
git_protocol | string | Git protocol version |
Field | Type | Label | Description |
stdout | bytes | A chunk of raw data from 'git upload-pack' standard output |
|
stderr | bytes | A chunk of raw data from 'git upload-pack' standard error |
|
exit_status | ExitStatus | This field may be nil. This is intentional: only when the remote command has finished can we return its exit status. |
Method Name | Request Type | Response Type | Description |
SSHUploadPack | SSHUploadPackRequest | SSHUploadPackResponse | To forward 'git upload-pack' to Gitaly for SSH sessions |
SSHReceivePack | SSHReceivePackRequest | SSHReceivePackResponse | To forward 'git receive-pack' to Gitaly for SSH sessions |
SSHUploadArchive | SSHUploadArchiveRequest | SSHUploadArchiveResponse | To forward 'git upload-archive' to Gitaly for SSH sessions |
Field | Type | Label | Description |
storage_name | string |
|
Field | Type | Label | Description |
storage_name | string |
|
|
depth | uint32 |
|
Field | Type | Label | Description |
paths | string | repeated |
|
Method Name | Request Type | Response Type | Description |
ListDirectories | ListDirectoriesRequest | ListDirectoriesResponse | |
DeleteAllRepositories | DeleteAllRepositoriesRequest | DeleteAllRepositoriesResponse |
Field | Type | Label | Description |
name | bytes |
|
|
bytes |
|
||
message | bytes |
|
|
user_id | int32 |
|
|
user_name | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
page_path | bytes |
|
|
commit_details | WikiCommitDetails |
|
Field | Type | Label | Description |
repository | Repository |
|
|
name | bytes |
|
|
revision | bytes | Optional: revision |
Field | Type | Label | Description |
name | bytes | If 'name' is empty, the file was not found. |
|
mime_type | string |
|
|
raw_data | bytes |
|
|
path | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
title | bytes |
|
|
revision | bytes |
|
|
directory | bytes |
|
WikiFindPageResponse is a stream because we need multiple WikiPage
messages to send the raw_data field.
Field | Type | Label | Description |
page | WikiPage |
|
Field | Type | Label | Description |
repository | Repository |
|
|
limit | uint32 | Passing 0 means no limit is applied |
|
direction_desc | bool |
|
|
sort | WikiGetAllPagesRequest.SortBy |
|
The WikiGetAllPagesResponse stream is a concatenation of WikiPage streams
Field | Type | Label | Description |
page | WikiPage |
|
|
end_of_page | bool | When end_of_page is true it signals a change of page for the next Response message (if any) |
Field | Type | Label | Description |
repository | Repository |
|
|
title | bytes |
|
|
revision | bytes |
|
|
directory | bytes |
|
Field | Type | Label | Description |
data | bytes |
|
Field | Type | Label | Description |
repository | Repository |
|
|
page_path | bytes |
|
|
page | int32 |
|
|
per_page | int32 |
|
Field | Type | Label | Description |
versions | WikiPageVersion | repeated |
|
Field | Type | Label | Description |
repository | Repository |
|
|
limit | uint32 | Passing 0 means no limit is applied |
|
direction_desc | bool |
|
|
sort | WikiListPagesRequest.SortBy |
|
|
offset | uint32 |
|
The WikiListPagesResponse stream is a concatenation of WikiPage streams without content
Field | Type | Label | Description |
page | WikiPage |
|
Field | Type | Label | Description |
version | WikiPageVersion | These fields are only present in the first message of a WikiPage stream |
|
format | string |
|
|
title | bytes |
|
|
url_path | string |
|
|
path | bytes |
|
|
name | bytes |
|
|
historical | bool |
|
|
raw_data | bytes | This field is present in all messages of a WikiPage stream |
Field | Type | Label | Description |
commit | GitCommit |
|
|
format | string |
|
Field | Type | Label | Description |
repository | Repository | There fields are only present in the first message of the stream |
|
page_path | bytes |
|
|
title | bytes |
|
|
format | string |
|
|
commit_details | WikiCommitDetails |
|
|
content | bytes | This field is present in all messages |
Field | Type | Label | Description |
error | bytes |
|
This message is sent in a stream because the 'content' field may be large.
Field | Type | Label | Description |
repository | Repository | These following fields are only present in the first message. |
|
name | bytes |
|
|
format | string |
|
|
commit_details | WikiCommitDetails |
|
|
content | bytes | This field is present in all messages. |
Field | Type | Label | Description |
duplicate_error | bytes |
|
Name | Number | Description |
TITLE | 0 | |
CREATED_AT | 1 |
Name | Number | Description |
TITLE | 0 | |
CREATED_AT | 1 |
Method Name | Request Type | Response Type | Description |
WikiGetPageVersions | WikiGetPageVersionsRequest | WikiGetPageVersionsResponse | |
WikiWritePage | WikiWritePageRequest | WikiWritePageResponse | |
WikiUpdatePage | WikiUpdatePageRequest | WikiUpdatePageResponse | |
WikiDeletePage | WikiDeletePageRequest | WikiDeletePageResponse | |
WikiFindPage | WikiFindPageRequest | WikiFindPageResponse | WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. |
WikiFindFile | WikiFindFileRequest | WikiFindFileResponse | |
WikiGetAllPages | WikiGetAllPagesRequest | WikiGetAllPagesResponse | |
WikiListPages | WikiListPagesRequest | WikiListPagesResponse | |
WikiGetFormattedData | WikiGetFormattedDataRequest | WikiGetFormattedDataResponse |
.proto Type | Notes | C++ Type | Java Type | Python Type |
double | double | double | float | |
float | float | float | float | |
int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int |
int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long |
uint32 | Uses variable-length encoding. | uint32 | int | int/long |
uint64 | Uses variable-length encoding. | uint64 | long | int/long |
sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int |
sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long |
fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int |
fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long |
sfixed32 | Always four bytes. | int32 | int | int |
sfixed64 | Always eight bytes. | int64 | long | int/long |
bool | bool | boolean | boolean | |
string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode |
bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str |