Skip to main content

gRPC Reference

container.proto

Container

FieldTypeLabelDescription
iduint32
addressfixed32
prefix_lengthfixed32
statusstring
imagestring
createdAtgoogle.protobuf.Timestamp
startedAtgoogle.protobuf.Timestamp
subnetwork_iduint32
entrypointstringrepeated
cmdstringrepeated
envstringrepeated

ContainerCreationRequest

FieldTypeLabelDescription
subnetwork_iduint32
imagestring
entrypointstringrepeated
cmdstringrepeated
envstringrepeated

ContainerExecInitializationRequest

FieldTypeLabelDescription
identificationContainerIdentificationRequest
console_widthint32
console_heightint32
terminalstringoptional
argsstringrepeated

ContainerExecRequest

FieldTypeLabelDescription
initializationContainerExecInitializationRequest
stdinbytes

ContainerExecResponse

FieldTypeLabelDescription
stdoutbytes
exit_codeint32

ContainerIdentificationRequest

FieldTypeLabelDescription
iduint32

ContainerService

Method NameRequest TypeResponse TypeDescription
GetContainerIdentificationRequestContainer
List.google.protobuf.EmptyContainer stream
CreateContainerCreationRequestContainer
DeleteContainerIdentificationRequest.google.protobuf.Empty
ExecContainerExecRequest streamContainerExecResponse stream
StartContainerIdentificationRequestContainer
StopContainerIdentificationRequestContainer

Top

introspection.proto

IntrospectionResponse

FieldTypeLabelDescription
versionstring

IntrospectionService

Method NameRequest TypeResponse TypeDescription
Get.google.protobuf.EmptyIntrospectionResponse

Top

network.proto

Network

FieldTypeLabelDescription
iduint32
internet_accessbool
createdAtgoogle.protobuf.Timestamp

NetworkCreationRequest

FieldTypeLabelDescription
internet_accessbool

NetworkIdentificationRequest

FieldTypeLabelDescription
iduint32

NetworkUpdateRequest

FieldTypeLabelDescription
identificationNetworkIdentificationRequest
updateNetworkCreationRequest

NetworkService

Method NameRequest TypeResponse TypeDescription
GetNetworkIdentificationRequestNetwork
List.google.protobuf.EmptyNetwork stream
CreateNetworkCreationRequestNetwork
UpdateNetworkUpdateRequestNetwork
DeleteNetworkIdentificationRequest.google.protobuf.Empty

Top

subnetwork.proto

Subnetwork

FieldTypeLabelDescription
iduint32
network_iduint32
addressfixed32
prefix_lengthfixed32
createdAtgoogle.protobuf.Timestamp

SubnetworkCreationRequest

FieldTypeLabelDescription
network_iduint32
addressfixed32
prefix_lengthfixed32

SubnetworkIdentificationRequest

FieldTypeLabelDescription
iduint32

SubnetworkUpdateRequest

FieldTypeLabelDescription
identificationSubnetworkIdentificationRequest
updateSubnetworkCreationRequestTODO: different message for update body, disallow passing different networkId

SubnetworkService

Method NameRequest TypeResponse TypeDescription
GetSubnetworkIdentificationRequestSubnetwork
List.google.protobuf.EmptySubnetwork stream
CreateSubnetworkCreationRequestSubnetwork
UpdateSubnetworkUpdateRequestSubnetwork
DeleteSubnetworkIdentificationRequest.google.protobuf.Empty

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)