Skip to content

revision

Contents

Messages

GetRevisionRequest

GetRevisionRequest is the request body to get a revision.

Field Type Description
oneof get_by.uid string UID of the revision. (-- api-linter: core::0148::uid-format=disabled aip.dev/not-precedent: We need to do this because of prefix. --)
oneof get_by.name_semantic_version GetRevisionRequest.NameSemanticVersion Name and semantic version of the revision.

GetRevisionRequest.NameSemanticVersion

Name and semantic version of the revision.

Field Type Description
name string Name(kind) of the revision.
semantic_version string Version of the revision.

ListRevisionsRequest

Request parameters for listing revisions.

Field Type Description
field_selector Selector Filtering list of revisions based on the provided column filters.
sort Sort Sort parameters for listing revisions.
pagination PageBasedPaginationRequest Pagination parameters for listing revisions.

ListRevisionsResponse

Revisions listing response.

Field Type Description
revisions repeated Revision Revisions is the list of revisions.
pagination PageBasedPaginationResponse Pagination metadata for this response. (-- api-linter: core::0132::response-unknown-fields=disabled aip.dev/not-precedent: We need this field for pagination. --)

Revision

Revision holds the template schema along with version details.

Field Type Description
meta Meta Metadata of the revision.
info RevisionInfo Info of the revision.

RevisionInfo

RevisionInfo contains info.

Field Type Description
semantic_version string Semantic version of the revision: 1.2 (major.minor - patch version not required).
deprecated bool Whether this revision has been deprecated.
schema google.protobuf.Struct Schema of the revision, if schema is backward compatible, update the revision, else upgrade.

Enums

Scalar Value Types

.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