proto

package
v0.0.0-...-9febfc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package proto provides protocol buffer message for cog system.

Index

Constants

View Source
const (
	CogLocalRpcService_BuildfsInsert_FullMethodName = "/devtools_srcfs.CogLocalRpcService/BuildfsInsert"
)

Variables

View Source
var (
	BuildfsInsertion_Mode_name = map[int32]string{
		0: "FILE",
		1: "EXECUTABLE_FILE",
	}
	BuildfsInsertion_Mode_value = map[string]int32{
		"FILE":            0,
		"EXECUTABLE_FILE": 1,
	}
)

Enum value maps for BuildfsInsertion_Mode.

View Source
var CogLocalRpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "devtools_srcfs.CogLocalRpcService",
	HandlerType: (*CogLocalRpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "BuildfsInsert",
			Handler:    _CogLocalRpcService_BuildfsInsert_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "local_rpc_service.proto",
}

CogLocalRpcService_ServiceDesc is the grpc.ServiceDesc for CogLocalRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_local_rpc_service_proto protoreflect.FileDescriptor

Functions

func RegisterCogLocalRpcServiceServer

func RegisterCogLocalRpcServiceServer(s grpc.ServiceRegistrar, srv CogLocalRpcServiceServer)

Types

type BuildfsInsertRequest

type BuildfsInsertRequest struct {
	ReapiServer   *string             `protobuf:"bytes,1,opt,name=reapi_server,json=reapiServer" json:"reapi_server,omitempty"`
	ReapiInstance *string             `protobuf:"bytes,2,opt,name=reapi_instance,json=reapiInstance" json:"reapi_instance,omitempty"`
	Insertions    []*BuildfsInsertion `protobuf:"bytes,3,rep,name=insertions" json:"insertions,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildfsInsertRequest) Descriptor deprecated

func (*BuildfsInsertRequest) Descriptor() ([]byte, []int)

Deprecated: Use BuildfsInsertRequest.ProtoReflect.Descriptor instead.

func (*BuildfsInsertRequest) GetInsertions

func (x *BuildfsInsertRequest) GetInsertions() []*BuildfsInsertion

func (*BuildfsInsertRequest) GetReapiInstance

func (x *BuildfsInsertRequest) GetReapiInstance() string

func (*BuildfsInsertRequest) GetReapiServer

func (x *BuildfsInsertRequest) GetReapiServer() string

func (*BuildfsInsertRequest) ProtoMessage

func (*BuildfsInsertRequest) ProtoMessage()

func (*BuildfsInsertRequest) ProtoReflect

func (x *BuildfsInsertRequest) ProtoReflect() protoreflect.Message

func (*BuildfsInsertRequest) Reset

func (x *BuildfsInsertRequest) Reset()

func (*BuildfsInsertRequest) String

func (x *BuildfsInsertRequest) String() string

type BuildfsInsertResponse

type BuildfsInsertResponse struct {
	// contains filtered or unexported fields
}

func (*BuildfsInsertResponse) Descriptor deprecated

func (*BuildfsInsertResponse) Descriptor() ([]byte, []int)

Deprecated: Use BuildfsInsertResponse.ProtoReflect.Descriptor instead.

func (*BuildfsInsertResponse) ProtoMessage

func (*BuildfsInsertResponse) ProtoMessage()

func (*BuildfsInsertResponse) ProtoReflect

func (x *BuildfsInsertResponse) ProtoReflect() protoreflect.Message

func (*BuildfsInsertResponse) Reset

func (x *BuildfsInsertResponse) Reset()

func (*BuildfsInsertResponse) String

func (x *BuildfsInsertResponse) String() string

type BuildfsInsertion

type BuildfsInsertion struct {
	Path *string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
	// SHA256 of the file content.
	Digest *string `protobuf:"bytes,2,opt,name=digest" json:"digest,omitempty"`
	// Size of the file.
	Size *int64                 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
	Mode *BuildfsInsertion_Mode `protobuf:"varint,4,opt,name=mode,enum=devtools_srcfs.BuildfsInsertion_Mode" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildfsInsertion) Descriptor deprecated

func (*BuildfsInsertion) Descriptor() ([]byte, []int)

Deprecated: Use BuildfsInsertion.ProtoReflect.Descriptor instead.

func (*BuildfsInsertion) GetDigest

func (x *BuildfsInsertion) GetDigest() string

func (*BuildfsInsertion) GetMode

func (*BuildfsInsertion) GetPath

func (x *BuildfsInsertion) GetPath() string

func (*BuildfsInsertion) GetSize

func (x *BuildfsInsertion) GetSize() int64

func (*BuildfsInsertion) ProtoMessage

func (*BuildfsInsertion) ProtoMessage()

func (*BuildfsInsertion) ProtoReflect

func (x *BuildfsInsertion) ProtoReflect() protoreflect.Message

func (*BuildfsInsertion) Reset

func (x *BuildfsInsertion) Reset()

func (*BuildfsInsertion) String

func (x *BuildfsInsertion) String() string

type BuildfsInsertion_Mode

type BuildfsInsertion_Mode int32
const (
	BuildfsInsertion_FILE            BuildfsInsertion_Mode = 0
	BuildfsInsertion_EXECUTABLE_FILE BuildfsInsertion_Mode = 1
)

func (BuildfsInsertion_Mode) Descriptor

func (BuildfsInsertion_Mode) Enum

func (BuildfsInsertion_Mode) EnumDescriptor deprecated

func (BuildfsInsertion_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use BuildfsInsertion_Mode.Descriptor instead.

func (BuildfsInsertion_Mode) Number

func (BuildfsInsertion_Mode) String

func (x BuildfsInsertion_Mode) String() string

func (BuildfsInsertion_Mode) Type

type CogLocalRpcServiceClient

type CogLocalRpcServiceClient interface {
	BuildfsInsert(ctx context.Context, in *BuildfsInsertRequest, opts ...grpc.CallOption) (*BuildfsInsertResponse, error)
}

CogLocalRpcServiceClient is the client API for CogLocalRpcService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CogLocalRpcServiceServer

type CogLocalRpcServiceServer interface {
	BuildfsInsert(context.Context, *BuildfsInsertRequest) (*BuildfsInsertResponse, error)
	// contains filtered or unexported methods
}

CogLocalRpcServiceServer is the server API for CogLocalRpcService service. All implementations must embed UnimplementedCogLocalRpcServiceServer for forward compatibility.

type UnimplementedCogLocalRpcServiceServer

type UnimplementedCogLocalRpcServiceServer struct{}

UnimplementedCogLocalRpcServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCogLocalRpcServiceServer) BuildfsInsert

type UnsafeCogLocalRpcServiceServer

type UnsafeCogLocalRpcServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCogLocalRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CogLocalRpcServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL