blob: 84d7655cfc837febb5ca7704cc6fb4a8640ae85a [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: chromiumos/config/api/test/tls/commontls.proto
package tls
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
longrunning "go.chromium.org/chromiumos/config/go/api/test/tls/dependencies/longrunning"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Output enumeration for ExecDutCommandRequest.
type Output int32
const (
// OUTPUT_PIPE means to collect output and return it.
Output_OUTPUT_PIPE Output = 0
// OUTPUT_STDOUT is a special value for stderr which means to merge stderr
// into stdout.
Output_OUTPUT_STDOUT Output = 1
)
var Output_name = map[int32]string{
0: "OUTPUT_PIPE",
1: "OUTPUT_STDOUT",
}
var Output_value = map[string]int32{
"OUTPUT_PIPE": 0,
"OUTPUT_STDOUT": 1,
}
func (x Output) String() string {
return proto.EnumName(Output_name, int32(x))
}
func (Output) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{0}
}
// When the status code is other than OK, details in Status message should be
// parsed for ErrorInfo message with the following Reasons as the reason.
type ProvisionDutResponse_Reason int32
const (
// status code: INVALID_ARGUMENT
ProvisionDutResponse_REASON_INVALID_REQUEST ProvisionDutResponse_Reason = 0
// status code: FAILED_PRECONDITION
ProvisionDutResponse_REASON_DUT_UNREACHABLE_PRE_PROVISION ProvisionDutResponse_Reason = 1
// status code: FAILED_PRECONDITION
ProvisionDutResponse_REASON_DOWNLOADING_IMAGE_FAILED ProvisionDutResponse_Reason = 2
// status code: DEADLINE_EXCEEDED
ProvisionDutResponse_REASON_PROVISIONING_TIMEDOUT ProvisionDutResponse_Reason = 3
// status code: ABORTED
ProvisionDutResponse_REASON_PROVISIONING_FAILED ProvisionDutResponse_Reason = 4
// status code: ABORTED
ProvisionDutResponse_REASON_DUT_UNREACHABLE_POST_PROVISION ProvisionDutResponse_Reason = 5
)
var ProvisionDutResponse_Reason_name = map[int32]string{
0: "REASON_INVALID_REQUEST",
1: "REASON_DUT_UNREACHABLE_PRE_PROVISION",
2: "REASON_DOWNLOADING_IMAGE_FAILED",
3: "REASON_PROVISIONING_TIMEDOUT",
4: "REASON_PROVISIONING_FAILED",
5: "REASON_DUT_UNREACHABLE_POST_PROVISION",
}
var ProvisionDutResponse_Reason_value = map[string]int32{
"REASON_INVALID_REQUEST": 0,
"REASON_DUT_UNREACHABLE_PRE_PROVISION": 1,
"REASON_DOWNLOADING_IMAGE_FAILED": 2,
"REASON_PROVISIONING_TIMEDOUT": 3,
"REASON_PROVISIONING_FAILED": 4,
"REASON_DUT_UNREACHABLE_POST_PROVISION": 5,
}
func (x ProvisionDutResponse_Reason) String() string {
return proto.EnumName(ProvisionDutResponse_Reason_name, int32(x))
}
func (ProvisionDutResponse_Reason) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{3, 0}
}
// When the status code is other than OK, details in Status message should be
// parsed for ErrorInfo message with the following Reasons as the reason.
type ProvisionLacrosResponse_Reason int32
const (
// Failed as the ProvisionLacros request is invalid.
ProvisionLacrosResponse_REASON_INVALID_REQUEST ProvisionLacrosResponse_Reason = 0
// Failed to connect to the DUT prior to provisioning Lacros.
ProvisionLacrosResponse_REASON_DUT_UNREACHABLE_PRE_PROVISION ProvisionLacrosResponse_Reason = 1
// Failed to download the Lacros image or a timeout during download.
ProvisionLacrosResponse_REASON_DOWNLOADING_IMAGE_FAILED ProvisionLacrosResponse_Reason = 2
// Failed due to a timeout during the main Lacros provisioning.
// Excludes timeout during other steps.
ProvisionLacrosResponse_REASON_PROVISIONING_TIMEDOUT ProvisionLacrosResponse_Reason = 3
// General failure in Lacros provisioning.
ProvisionLacrosResponse_REASON_PROVISIONING_FAILED ProvisionLacrosResponse_Reason = 4
)
var ProvisionLacrosResponse_Reason_name = map[int32]string{
0: "REASON_INVALID_REQUEST",
1: "REASON_DUT_UNREACHABLE_PRE_PROVISION",
2: "REASON_DOWNLOADING_IMAGE_FAILED",
3: "REASON_PROVISIONING_TIMEDOUT",
4: "REASON_PROVISIONING_FAILED",
}
var ProvisionLacrosResponse_Reason_value = map[string]int32{
"REASON_INVALID_REQUEST": 0,
"REASON_DUT_UNREACHABLE_PRE_PROVISION": 1,
"REASON_DOWNLOADING_IMAGE_FAILED": 2,
"REASON_PROVISIONING_TIMEDOUT": 3,
"REASON_PROVISIONING_FAILED": 4,
}
func (x ProvisionLacrosResponse_Reason) String() string {
return proto.EnumName(ProvisionLacrosResponse_Reason_name, int32(x))
}
func (ProvisionLacrosResponse_Reason) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{6, 0}
}
type FakeOmaha_Payload_Type int32
const (
FakeOmaha_Payload_TYPE_UNSPECIFIED FakeOmaha_Payload_Type = 0
FakeOmaha_Payload_FULL FakeOmaha_Payload_Type = 1
FakeOmaha_Payload_DELTA FakeOmaha_Payload_Type = 2
)
var FakeOmaha_Payload_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "FULL",
2: "DELTA",
}
var FakeOmaha_Payload_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"FULL": 1,
"DELTA": 2,
}
func (x FakeOmaha_Payload_Type) String() string {
return proto.EnumName(FakeOmaha_Payload_Type_name, int32(x))
}
func (FakeOmaha_Payload_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{14, 0, 0}
}
type ExecDutCommandRequest struct {
// name is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// command is the command to run.
// If this contains no slashes, it is resolved using PATH.
// If this starts with /, it is used as an absolute path to the
// program to run.
// Otherwise, this is treated as a path relative to the working
// directory.
Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
// args are the arguments to pass to the command.
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
// stdin is passed to the command as the program's stdin.
// The stream does not support seeking.
// An empty bytes is not treated specially; if the command reads
// from stdin, it will receive zero bytes.
Stdin []byte `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"`
// stdout indicates how to handle the command's stdout.
Stdout Output `protobuf:"varint,5,opt,name=stdout,proto3,enum=chromiumos.config.api.test.tls.Output" json:"stdout,omitempty"`
// stderr indicates how to handle the command's stderr.
Stderr Output `protobuf:"varint,6,opt,name=stderr,proto3,enum=chromiumos.config.api.test.tls.Output" json:"stderr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExecDutCommandRequest) Reset() { *m = ExecDutCommandRequest{} }
func (m *ExecDutCommandRequest) String() string { return proto.CompactTextString(m) }
func (*ExecDutCommandRequest) ProtoMessage() {}
func (*ExecDutCommandRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{0}
}
func (m *ExecDutCommandRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExecDutCommandRequest.Unmarshal(m, b)
}
func (m *ExecDutCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExecDutCommandRequest.Marshal(b, m, deterministic)
}
func (m *ExecDutCommandRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExecDutCommandRequest.Merge(m, src)
}
func (m *ExecDutCommandRequest) XXX_Size() int {
return xxx_messageInfo_ExecDutCommandRequest.Size(m)
}
func (m *ExecDutCommandRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ExecDutCommandRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ExecDutCommandRequest proto.InternalMessageInfo
func (m *ExecDutCommandRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ExecDutCommandRequest) GetCommand() string {
if m != nil {
return m.Command
}
return ""
}
func (m *ExecDutCommandRequest) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *ExecDutCommandRequest) GetStdin() []byte {
if m != nil {
return m.Stdin
}
return nil
}
func (m *ExecDutCommandRequest) GetStdout() Output {
if m != nil {
return m.Stdout
}
return Output_OUTPUT_PIPE
}
func (m *ExecDutCommandRequest) GetStderr() Output {
if m != nil {
return m.Stderr
}
return Output_OUTPUT_PIPE
}
type ExecDutCommandResponse struct {
// exit_info contains exit information.
// This is set when the command has exited or failed to start.
// This is set on the last message in the response stream.
ExitInfo *ExecDutCommandResponse_ExitInfo `protobuf:"bytes,1,opt,name=exit_info,json=exitInfo,proto3" json:"exit_info,omitempty"`
// stdout contains the shell command's stdout output since the last
// response in the stream.
// The implementation MAY batch or delay output to later
// responses in the stream.
Stdout []byte `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"`
// stderr contains the shell command's stderr output since the last
// response in the stream.
// The implementation MAY batch or delay output to later
// responses in the stream.
Stderr []byte `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExecDutCommandResponse) Reset() { *m = ExecDutCommandResponse{} }
func (m *ExecDutCommandResponse) String() string { return proto.CompactTextString(m) }
func (*ExecDutCommandResponse) ProtoMessage() {}
func (*ExecDutCommandResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{1}
}
func (m *ExecDutCommandResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExecDutCommandResponse.Unmarshal(m, b)
}
func (m *ExecDutCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExecDutCommandResponse.Marshal(b, m, deterministic)
}
func (m *ExecDutCommandResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExecDutCommandResponse.Merge(m, src)
}
func (m *ExecDutCommandResponse) XXX_Size() int {
return xxx_messageInfo_ExecDutCommandResponse.Size(m)
}
func (m *ExecDutCommandResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ExecDutCommandResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ExecDutCommandResponse proto.InternalMessageInfo
func (m *ExecDutCommandResponse) GetExitInfo() *ExecDutCommandResponse_ExitInfo {
if m != nil {
return m.ExitInfo
}
return nil
}
func (m *ExecDutCommandResponse) GetStdout() []byte {
if m != nil {
return m.Stdout
}
return nil
}
func (m *ExecDutCommandResponse) GetStderr() []byte {
if m != nil {
return m.Stderr
}
return nil
}
type ExecDutCommandResponse_ExitInfo struct {
// status provides information about how the command process
// terminated.
//
// If the command failed to start, status is set to an arbitrary
// non-zero value.
//
// If signaled is set, status is set to the signal that caused
// the command to terminate.
//
// Otherwise, status is set to the exit status of the process.
// Exit statuses outside of 0 to 255 inclusive are not supported;
// they will be mapped to an arbitrary non-zero value.
//
// status is zero if and only if the process was successfully
// started and exited with a zero status.
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
// signaled indicates whether the command exited due to a signal.
// If set, status contains the signal.
Signaled bool `protobuf:"varint,2,opt,name=signaled,proto3" json:"signaled,omitempty"`
// started indicates whether the command was started.
Started bool `protobuf:"varint,3,opt,name=started,proto3" json:"started,omitempty"`
// error_message provides a human readable explanation for some errors.
// This MUST NOT be inspected by programs.
ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExecDutCommandResponse_ExitInfo) Reset() { *m = ExecDutCommandResponse_ExitInfo{} }
func (m *ExecDutCommandResponse_ExitInfo) String() string { return proto.CompactTextString(m) }
func (*ExecDutCommandResponse_ExitInfo) ProtoMessage() {}
func (*ExecDutCommandResponse_ExitInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{1, 0}
}
func (m *ExecDutCommandResponse_ExitInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExecDutCommandResponse_ExitInfo.Unmarshal(m, b)
}
func (m *ExecDutCommandResponse_ExitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExecDutCommandResponse_ExitInfo.Marshal(b, m, deterministic)
}
func (m *ExecDutCommandResponse_ExitInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExecDutCommandResponse_ExitInfo.Merge(m, src)
}
func (m *ExecDutCommandResponse_ExitInfo) XXX_Size() int {
return xxx_messageInfo_ExecDutCommandResponse_ExitInfo.Size(m)
}
func (m *ExecDutCommandResponse_ExitInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ExecDutCommandResponse_ExitInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ExecDutCommandResponse_ExitInfo proto.InternalMessageInfo
func (m *ExecDutCommandResponse_ExitInfo) GetStatus() int32 {
if m != nil {
return m.Status
}
return 0
}
func (m *ExecDutCommandResponse_ExitInfo) GetSignaled() bool {
if m != nil {
return m.Signaled
}
return false
}
func (m *ExecDutCommandResponse_ExitInfo) GetStarted() bool {
if m != nil {
return m.Started
}
return false
}
func (m *ExecDutCommandResponse_ExitInfo) GetErrorMessage() string {
if m != nil {
return m.ErrorMessage
}
return ""
}
type ProvisionDutRequest struct {
// name is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// image specifies the Chrome OS image with which to provision the DUT.
Image *ProvisionDutRequest_ChromeOSImage `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // Deprecated: Do not use.
// dlc_specs specifies which DLCs to install on the DUT after provisioning.
DlcSpecs []*ProvisionDutRequest_DLCSpec `protobuf:"bytes,3,rep,name=dlc_specs,json=dlcSpecs,proto3" json:"dlc_specs,omitempty"`
// preserve_stateful specifies whether the stateful partition should be preserved during
// provisioning. If preserve_stateful is not set to true, the stateful partition is
// block-level wiped and reset during provisioning.
PreserveStateful bool `protobuf:"varint,4,opt,name=preserve_stateful,json=preserveStateful,proto3" json:"preserve_stateful,omitempty"`
// target_build is the ChromeOS build to provision to.
TargetBuild *ChromeOsImage `protobuf:"bytes,5,opt,name=target_build,json=targetBuild,proto3" json:"target_build,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionDutRequest) Reset() { *m = ProvisionDutRequest{} }
func (m *ProvisionDutRequest) String() string { return proto.CompactTextString(m) }
func (*ProvisionDutRequest) ProtoMessage() {}
func (*ProvisionDutRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{2}
}
func (m *ProvisionDutRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionDutRequest.Unmarshal(m, b)
}
func (m *ProvisionDutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionDutRequest.Marshal(b, m, deterministic)
}
func (m *ProvisionDutRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionDutRequest.Merge(m, src)
}
func (m *ProvisionDutRequest) XXX_Size() int {
return xxx_messageInfo_ProvisionDutRequest.Size(m)
}
func (m *ProvisionDutRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionDutRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionDutRequest proto.InternalMessageInfo
func (m *ProvisionDutRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Deprecated: Do not use.
func (m *ProvisionDutRequest) GetImage() *ProvisionDutRequest_ChromeOSImage {
if m != nil {
return m.Image
}
return nil
}
func (m *ProvisionDutRequest) GetDlcSpecs() []*ProvisionDutRequest_DLCSpec {
if m != nil {
return m.DlcSpecs
}
return nil
}
func (m *ProvisionDutRequest) GetPreserveStateful() bool {
if m != nil {
return m.PreserveStateful
}
return false
}
func (m *ProvisionDutRequest) GetTargetBuild() *ChromeOsImage {
if m != nil {
return m.TargetBuild
}
return nil
}
// TODO(crbug.com/1155247) Deprecate this nested message and replace with
// top level ChromeOsImage.
//
// Deprecated: Do not use.
type ProvisionDutRequest_ChromeOSImage struct {
// Types that are valid to be assigned to PathOneof:
// *ProvisionDutRequest_ChromeOSImage_GsPathPrefix
PathOneof isProvisionDutRequest_ChromeOSImage_PathOneof `protobuf_oneof:"path_oneof"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionDutRequest_ChromeOSImage) Reset() { *m = ProvisionDutRequest_ChromeOSImage{} }
func (m *ProvisionDutRequest_ChromeOSImage) String() string { return proto.CompactTextString(m) }
func (*ProvisionDutRequest_ChromeOSImage) ProtoMessage() {}
func (*ProvisionDutRequest_ChromeOSImage) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{2, 0}
}
func (m *ProvisionDutRequest_ChromeOSImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionDutRequest_ChromeOSImage.Unmarshal(m, b)
}
func (m *ProvisionDutRequest_ChromeOSImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionDutRequest_ChromeOSImage.Marshal(b, m, deterministic)
}
func (m *ProvisionDutRequest_ChromeOSImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionDutRequest_ChromeOSImage.Merge(m, src)
}
func (m *ProvisionDutRequest_ChromeOSImage) XXX_Size() int {
return xxx_messageInfo_ProvisionDutRequest_ChromeOSImage.Size(m)
}
func (m *ProvisionDutRequest_ChromeOSImage) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionDutRequest_ChromeOSImage.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionDutRequest_ChromeOSImage proto.InternalMessageInfo
type isProvisionDutRequest_ChromeOSImage_PathOneof interface {
isProvisionDutRequest_ChromeOSImage_PathOneof()
}
type ProvisionDutRequest_ChromeOSImage_GsPathPrefix struct {
GsPathPrefix string `protobuf:"bytes,1,opt,name=gs_path_prefix,json=gsPathPrefix,proto3,oneof"`
}
func (*ProvisionDutRequest_ChromeOSImage_GsPathPrefix) isProvisionDutRequest_ChromeOSImage_PathOneof() {
}
func (m *ProvisionDutRequest_ChromeOSImage) GetPathOneof() isProvisionDutRequest_ChromeOSImage_PathOneof {
if m != nil {
return m.PathOneof
}
return nil
}
func (m *ProvisionDutRequest_ChromeOSImage) GetGsPathPrefix() string {
if x, ok := m.GetPathOneof().(*ProvisionDutRequest_ChromeOSImage_GsPathPrefix); ok {
return x.GsPathPrefix
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ProvisionDutRequest_ChromeOSImage) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ProvisionDutRequest_ChromeOSImage_GsPathPrefix)(nil),
}
}
// Reference DLCs developer documentation:
// https://source.corp.google.com/chromeos_public/src/platform2/dlcservice/docs/developer.md
type ProvisionDutRequest_DLCSpec struct {
// id is the DLC ID which is a unique identifier.
// The DLC ID must follow a specific format that can be found in the DLC
// developer doc below.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionDutRequest_DLCSpec) Reset() { *m = ProvisionDutRequest_DLCSpec{} }
func (m *ProvisionDutRequest_DLCSpec) String() string { return proto.CompactTextString(m) }
func (*ProvisionDutRequest_DLCSpec) ProtoMessage() {}
func (*ProvisionDutRequest_DLCSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{2, 1}
}
func (m *ProvisionDutRequest_DLCSpec) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionDutRequest_DLCSpec.Unmarshal(m, b)
}
func (m *ProvisionDutRequest_DLCSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionDutRequest_DLCSpec.Marshal(b, m, deterministic)
}
func (m *ProvisionDutRequest_DLCSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionDutRequest_DLCSpec.Merge(m, src)
}
func (m *ProvisionDutRequest_DLCSpec) XXX_Size() int {
return xxx_messageInfo_ProvisionDutRequest_DLCSpec.Size(m)
}
func (m *ProvisionDutRequest_DLCSpec) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionDutRequest_DLCSpec.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionDutRequest_DLCSpec proto.InternalMessageInfo
func (m *ProvisionDutRequest_DLCSpec) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type ProvisionDutResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionDutResponse) Reset() { *m = ProvisionDutResponse{} }
func (m *ProvisionDutResponse) String() string { return proto.CompactTextString(m) }
func (*ProvisionDutResponse) ProtoMessage() {}
func (*ProvisionDutResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{3}
}
func (m *ProvisionDutResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionDutResponse.Unmarshal(m, b)
}
func (m *ProvisionDutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionDutResponse.Marshal(b, m, deterministic)
}
func (m *ProvisionDutResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionDutResponse.Merge(m, src)
}
func (m *ProvisionDutResponse) XXX_Size() int {
return xxx_messageInfo_ProvisionDutResponse.Size(m)
}
func (m *ProvisionDutResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionDutResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionDutResponse proto.InternalMessageInfo
type ProvisionDutMetadata struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionDutMetadata) Reset() { *m = ProvisionDutMetadata{} }
func (m *ProvisionDutMetadata) String() string { return proto.CompactTextString(m) }
func (*ProvisionDutMetadata) ProtoMessage() {}
func (*ProvisionDutMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{4}
}
func (m *ProvisionDutMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionDutMetadata.Unmarshal(m, b)
}
func (m *ProvisionDutMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionDutMetadata.Marshal(b, m, deterministic)
}
func (m *ProvisionDutMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionDutMetadata.Merge(m, src)
}
func (m *ProvisionDutMetadata) XXX_Size() int {
return xxx_messageInfo_ProvisionDutMetadata.Size(m)
}
func (m *ProvisionDutMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionDutMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionDutMetadata proto.InternalMessageInfo
type ProvisionLacrosRequest struct {
// name is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// image specifies the Lacros image with which to provision the DUT.
Image *ProvisionLacrosRequest_LacrosImage `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionLacrosRequest) Reset() { *m = ProvisionLacrosRequest{} }
func (m *ProvisionLacrosRequest) String() string { return proto.CompactTextString(m) }
func (*ProvisionLacrosRequest) ProtoMessage() {}
func (*ProvisionLacrosRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{5}
}
func (m *ProvisionLacrosRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionLacrosRequest.Unmarshal(m, b)
}
func (m *ProvisionLacrosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionLacrosRequest.Marshal(b, m, deterministic)
}
func (m *ProvisionLacrosRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionLacrosRequest.Merge(m, src)
}
func (m *ProvisionLacrosRequest) XXX_Size() int {
return xxx_messageInfo_ProvisionLacrosRequest.Size(m)
}
func (m *ProvisionLacrosRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionLacrosRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionLacrosRequest proto.InternalMessageInfo
func (m *ProvisionLacrosRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ProvisionLacrosRequest) GetImage() *ProvisionLacrosRequest_LacrosImage {
if m != nil {
return m.Image
}
return nil
}
type ProvisionLacrosRequest_LacrosImage struct {
// Types that are valid to be assigned to PathOneof:
// *ProvisionLacrosRequest_LacrosImage_GsPathPrefix
PathOneof isProvisionLacrosRequest_LacrosImage_PathOneof `protobuf_oneof:"path_oneof"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionLacrosRequest_LacrosImage) Reset() { *m = ProvisionLacrosRequest_LacrosImage{} }
func (m *ProvisionLacrosRequest_LacrosImage) String() string { return proto.CompactTextString(m) }
func (*ProvisionLacrosRequest_LacrosImage) ProtoMessage() {}
func (*ProvisionLacrosRequest_LacrosImage) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{5, 0}
}
func (m *ProvisionLacrosRequest_LacrosImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionLacrosRequest_LacrosImage.Unmarshal(m, b)
}
func (m *ProvisionLacrosRequest_LacrosImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionLacrosRequest_LacrosImage.Marshal(b, m, deterministic)
}
func (m *ProvisionLacrosRequest_LacrosImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionLacrosRequest_LacrosImage.Merge(m, src)
}
func (m *ProvisionLacrosRequest_LacrosImage) XXX_Size() int {
return xxx_messageInfo_ProvisionLacrosRequest_LacrosImage.Size(m)
}
func (m *ProvisionLacrosRequest_LacrosImage) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionLacrosRequest_LacrosImage.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionLacrosRequest_LacrosImage proto.InternalMessageInfo
type isProvisionLacrosRequest_LacrosImage_PathOneof interface {
isProvisionLacrosRequest_LacrosImage_PathOneof()
}
type ProvisionLacrosRequest_LacrosImage_GsPathPrefix struct {
GsPathPrefix string `protobuf:"bytes,1,opt,name=gs_path_prefix,json=gsPathPrefix,proto3,oneof"`
}
func (*ProvisionLacrosRequest_LacrosImage_GsPathPrefix) isProvisionLacrosRequest_LacrosImage_PathOneof() {
}
func (m *ProvisionLacrosRequest_LacrosImage) GetPathOneof() isProvisionLacrosRequest_LacrosImage_PathOneof {
if m != nil {
return m.PathOneof
}
return nil
}
func (m *ProvisionLacrosRequest_LacrosImage) GetGsPathPrefix() string {
if x, ok := m.GetPathOneof().(*ProvisionLacrosRequest_LacrosImage_GsPathPrefix); ok {
return x.GsPathPrefix
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ProvisionLacrosRequest_LacrosImage) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ProvisionLacrosRequest_LacrosImage_GsPathPrefix)(nil),
}
}
type ProvisionLacrosResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionLacrosResponse) Reset() { *m = ProvisionLacrosResponse{} }
func (m *ProvisionLacrosResponse) String() string { return proto.CompactTextString(m) }
func (*ProvisionLacrosResponse) ProtoMessage() {}
func (*ProvisionLacrosResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{6}
}
func (m *ProvisionLacrosResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionLacrosResponse.Unmarshal(m, b)
}
func (m *ProvisionLacrosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionLacrosResponse.Marshal(b, m, deterministic)
}
func (m *ProvisionLacrosResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionLacrosResponse.Merge(m, src)
}
func (m *ProvisionLacrosResponse) XXX_Size() int {
return xxx_messageInfo_ProvisionLacrosResponse.Size(m)
}
func (m *ProvisionLacrosResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionLacrosResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionLacrosResponse proto.InternalMessageInfo
type ProvisionLacrosMetadata struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionLacrosMetadata) Reset() { *m = ProvisionLacrosMetadata{} }
func (m *ProvisionLacrosMetadata) String() string { return proto.CompactTextString(m) }
func (*ProvisionLacrosMetadata) ProtoMessage() {}
func (*ProvisionLacrosMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{7}
}
func (m *ProvisionLacrosMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvisionLacrosMetadata.Unmarshal(m, b)
}
func (m *ProvisionLacrosMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvisionLacrosMetadata.Marshal(b, m, deterministic)
}
func (m *ProvisionLacrosMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionLacrosMetadata.Merge(m, src)
}
func (m *ProvisionLacrosMetadata) XXX_Size() int {
return xxx_messageInfo_ProvisionLacrosMetadata.Size(m)
}
func (m *ProvisionLacrosMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionLacrosMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionLacrosMetadata proto.InternalMessageInfo
type FetchCrashesRequest struct {
// dut is the resource name for the DUT from which to fetch crashes.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
Dut string `protobuf:"bytes,1,opt,name=dut,proto3" json:"dut,omitempty"`
// If true, fetch the core file.
// For uploads to the crash server, that should generally be false.
// If the crash file is likely to be used for manual debugging (e.g. on
// a manually-invoked test suite run), this might be true.
// Coredumps can be extremely large (even gigabytes), so if resource usage
// is a concern, this should probably be false.
FetchCore bool `protobuf:"varint,2,opt,name=fetch_core,json=fetchCore,proto3" json:"fetch_core,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FetchCrashesRequest) Reset() { *m = FetchCrashesRequest{} }
func (m *FetchCrashesRequest) String() string { return proto.CompactTextString(m) }
func (*FetchCrashesRequest) ProtoMessage() {}
func (*FetchCrashesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{8}
}
func (m *FetchCrashesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FetchCrashesRequest.Unmarshal(m, b)
}
func (m *FetchCrashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FetchCrashesRequest.Marshal(b, m, deterministic)
}
func (m *FetchCrashesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FetchCrashesRequest.Merge(m, src)
}
func (m *FetchCrashesRequest) XXX_Size() int {
return xxx_messageInfo_FetchCrashesRequest.Size(m)
}
func (m *FetchCrashesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FetchCrashesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FetchCrashesRequest proto.InternalMessageInfo
func (m *FetchCrashesRequest) GetDut() string {
if m != nil {
return m.Dut
}
return ""
}
func (m *FetchCrashesRequest) GetFetchCore() bool {
if m != nil {
return m.FetchCore
}
return false
}
// When this response is streamed, the first proto with a given crash ID will
// always contain the CrashInfo.
// Files and core dumps (if present) may be streamed. If they are,
// subsequent protos with the same crash ID will follow, each containing a chunk
// of file/coredump. To reassemble these, concatenate the bytes received from
// each subsequent proto with a matching crash_id (concatenate blobs that have
// matching crash_ids and keys).
// Additional crashes may be reported in the same stream with a new crash ID.
type FetchCrashesResponse struct {
// Crash id. unique only within responses to a single FetchCrashes request.
// Used to assemble multiple streamed |FetchCrashesResponse| protos into a
// single crash report.
CrashId int64 `protobuf:"varint,1,opt,name=crash_id,json=crashId,proto3" json:"crash_id,omitempty"`
// Types that are valid to be assigned to Data:
// *FetchCrashesResponse_Crash
// *FetchCrashesResponse_Blob
// *FetchCrashesResponse_Core
Data isFetchCrashesResponse_Data `protobuf_oneof:"data"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FetchCrashesResponse) Reset() { *m = FetchCrashesResponse{} }
func (m *FetchCrashesResponse) String() string { return proto.CompactTextString(m) }
func (*FetchCrashesResponse) ProtoMessage() {}
func (*FetchCrashesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{9}
}
func (m *FetchCrashesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FetchCrashesResponse.Unmarshal(m, b)
}
func (m *FetchCrashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FetchCrashesResponse.Marshal(b, m, deterministic)
}
func (m *FetchCrashesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FetchCrashesResponse.Merge(m, src)
}
func (m *FetchCrashesResponse) XXX_Size() int {
return xxx_messageInfo_FetchCrashesResponse.Size(m)
}
func (m *FetchCrashesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FetchCrashesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FetchCrashesResponse proto.InternalMessageInfo
func (m *FetchCrashesResponse) GetCrashId() int64 {
if m != nil {
return m.CrashId
}
return 0
}
type isFetchCrashesResponse_Data interface {
isFetchCrashesResponse_Data()
}
type FetchCrashesResponse_Crash struct {
Crash *CrashInfo `protobuf:"bytes,2,opt,name=crash,proto3,oneof"`
}
type FetchCrashesResponse_Blob struct {
Blob *CrashBlob `protobuf:"bytes,3,opt,name=blob,proto3,oneof"`
}
type FetchCrashesResponse_Core struct {
Core []byte `protobuf:"bytes,4,opt,name=core,proto3,oneof"`
}
func (*FetchCrashesResponse_Crash) isFetchCrashesResponse_Data() {}
func (*FetchCrashesResponse_Blob) isFetchCrashesResponse_Data() {}
func (*FetchCrashesResponse_Core) isFetchCrashesResponse_Data() {}
func (m *FetchCrashesResponse) GetData() isFetchCrashesResponse_Data {
if m != nil {
return m.Data
}
return nil
}
func (m *FetchCrashesResponse) GetCrash() *CrashInfo {
if x, ok := m.GetData().(*FetchCrashesResponse_Crash); ok {
return x.Crash
}
return nil
}
func (m *FetchCrashesResponse) GetBlob() *CrashBlob {
if x, ok := m.GetData().(*FetchCrashesResponse_Blob); ok {
return x.Blob
}
return nil
}
func (m *FetchCrashesResponse) GetCore() []byte {
if x, ok := m.GetData().(*FetchCrashesResponse_Core); ok {
return x.Core
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*FetchCrashesResponse) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*FetchCrashesResponse_Crash)(nil),
(*FetchCrashesResponse_Blob)(nil),
(*FetchCrashesResponse_Core)(nil),
}
}
// The data in this proto matches the metadata from crash-reporter's meta files.
// Sender::CreateCrashFormData puts this data into crash upload POST requests.
// (See src/platform2/crash-reporter/crash_sender_util.cc.)
// The names in this proto MUST match the names that crash-reporter uses so
// that, when crashes are uploaded to the crash server, they are interpreted
// as they are when crash-reporter uploads them.
// Similarly, when this proto is converted into a POST request to send to the
// crash server, the names must not be altered.
type CrashInfo struct {
// Name of executable that crashed (e.g. "chrome")
ExecName string `protobuf:"bytes,1,opt,name=exec_name,json=execName,proto3" json:"exec_name,omitempty"`
// Product name (e.g. "Chrome_ChromeOS" or "ChromeOS")
Prod string `protobuf:"bytes,2,opt,name=prod,proto3" json:"prod,omitempty"`
// Product version (e.g. "12345.0.0")
Ver string `protobuf:"bytes,3,opt,name=ver,proto3" json:"ver,omitempty"`
// Crash signature (may not be populated for all crashes)
Sig string `protobuf:"bytes,4,opt,name=sig,proto3" json:"sig,omitempty"`
// The name of the integration test that was running when this crash
// happened, if any.
InProgressIntegrationTest string `protobuf:"bytes,5,opt,name=in_progress_integration_test,json=inProgressIntegrationTest,proto3" json:"in_progress_integration_test,omitempty"`
// The name of the collector (e.g. chrome_collector, arc_collector)
Collector string `protobuf:"bytes,6,opt,name=collector,proto3" json:"collector,omitempty"`
// Additional key-value pairs of metadata (e.g. "crash_loop_mode = true").
// These should be included in any POSTs to the crash server in a standard
// POST form, as seen in CreateCrashFormData.
// (despite the fact that this message is a subfield, it should be a flat
// structure in any POSTs).
Fields []*CrashMetadata `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CrashInfo) Reset() { *m = CrashInfo{} }
func (m *CrashInfo) String() string { return proto.CompactTextString(m) }
func (*CrashInfo) ProtoMessage() {}
func (*CrashInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{10}
}
func (m *CrashInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CrashInfo.Unmarshal(m, b)
}
func (m *CrashInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CrashInfo.Marshal(b, m, deterministic)
}
func (m *CrashInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_CrashInfo.Merge(m, src)
}
func (m *CrashInfo) XXX_Size() int {
return xxx_messageInfo_CrashInfo.Size(m)
}
func (m *CrashInfo) XXX_DiscardUnknown() {
xxx_messageInfo_CrashInfo.DiscardUnknown(m)
}
var xxx_messageInfo_CrashInfo proto.InternalMessageInfo
func (m *CrashInfo) GetExecName() string {
if m != nil {
return m.ExecName
}
return ""
}
func (m *CrashInfo) GetProd() string {
if m != nil {
return m.Prod
}
return ""
}
func (m *CrashInfo) GetVer() string {
if m != nil {
return m.Ver
}
return ""
}
func (m *CrashInfo) GetSig() string {
if m != nil {
return m.Sig
}
return ""
}
func (m *CrashInfo) GetInProgressIntegrationTest() string {
if m != nil {
return m.InProgressIntegrationTest
}
return ""
}
func (m *CrashInfo) GetCollector() string {
if m != nil {
return m.Collector
}
return ""
}
func (m *CrashInfo) GetFields() []*CrashMetadata {
if m != nil {
return m.Fields
}
return nil
}
// Arbitrary text-only key-value pair corresponding to the key-value pairs in
// crash report metadata files.
type CrashMetadata struct {
// This value is a UTF8, human-readable, description of the data.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The value will be a human-readable string (e.g. "12345.0.0"), which must
// be valid UTF-8.
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CrashMetadata) Reset() { *m = CrashMetadata{} }
func (m *CrashMetadata) String() string { return proto.CompactTextString(m) }
func (*CrashMetadata) ProtoMessage() {}
func (*CrashMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{11}
}
func (m *CrashMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CrashMetadata.Unmarshal(m, b)
}
func (m *CrashMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CrashMetadata.Marshal(b, m, deterministic)
}
func (m *CrashMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_CrashMetadata.Merge(m, src)
}
func (m *CrashMetadata) XXX_Size() int {
return xxx_messageInfo_CrashMetadata.Size(m)
}
func (m *CrashMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_CrashMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_CrashMetadata proto.InternalMessageInfo
func (m *CrashMetadata) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *CrashMetadata) GetText() string {
if m != nil {
return m.Text
}
return ""
}
// Arbitrary non-UTF8 key-value pair from crash report metadata files.
type CrashBlob struct {
// This value is a UTF8, human-readable, description of the data.
// This should be passed as the 'name' to the crash server.
// For instance, upload_file_fake_payload
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The value is a blob (e.g. a file from sysfs or a minidump), which need
// not be valid UTF-8, and may be large.
Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"`
// The basename of the file. Must be specified as the filename in data
// uploaded to the crash server.
// e.g. foo_binary.20201027.102345.0.dmp
Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CrashBlob) Reset() { *m = CrashBlob{} }
func (m *CrashBlob) String() string { return proto.CompactTextString(m) }
func (*CrashBlob) ProtoMessage() {}
func (*CrashBlob) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{12}
}
func (m *CrashBlob) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CrashBlob.Unmarshal(m, b)
}
func (m *CrashBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CrashBlob.Marshal(b, m, deterministic)
}
func (m *CrashBlob) XXX_Merge(src proto.Message) {
xxx_messageInfo_CrashBlob.Merge(m, src)
}
func (m *CrashBlob) XXX_Size() int {
return xxx_messageInfo_CrashBlob.Size(m)
}
func (m *CrashBlob) XXX_DiscardUnknown() {
xxx_messageInfo_CrashBlob.DiscardUnknown(m)
}
var xxx_messageInfo_CrashBlob proto.InternalMessageInfo
func (m *CrashBlob) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *CrashBlob) GetBlob() []byte {
if m != nil {
return m.Blob
}
return nil
}
func (m *CrashBlob) GetFilename() string {
if m != nil {
return m.Filename
}
return ""
}
type ChromeOsImage struct {
// Types that are valid to be assigned to PathOneof:
// *ChromeOsImage_GsPathPrefix
PathOneof isChromeOsImage_PathOneof `protobuf_oneof:"path_oneof"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChromeOsImage) Reset() { *m = ChromeOsImage{} }
func (m *ChromeOsImage) String() string { return proto.CompactTextString(m) }
func (*ChromeOsImage) ProtoMessage() {}
func (*ChromeOsImage) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{13}
}
func (m *ChromeOsImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChromeOsImage.Unmarshal(m, b)
}
func (m *ChromeOsImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChromeOsImage.Marshal(b, m, deterministic)
}
func (m *ChromeOsImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChromeOsImage.Merge(m, src)
}
func (m *ChromeOsImage) XXX_Size() int {
return xxx_messageInfo_ChromeOsImage.Size(m)
}
func (m *ChromeOsImage) XXX_DiscardUnknown() {
xxx_messageInfo_ChromeOsImage.DiscardUnknown(m)
}
var xxx_messageInfo_ChromeOsImage proto.InternalMessageInfo
type isChromeOsImage_PathOneof interface {
isChromeOsImage_PathOneof()
}
type ChromeOsImage_GsPathPrefix struct {
GsPathPrefix string `protobuf:"bytes,1,opt,name=gs_path_prefix,json=gsPathPrefix,proto3,oneof"`
}
func (*ChromeOsImage_GsPathPrefix) isChromeOsImage_PathOneof() {}
func (m *ChromeOsImage) GetPathOneof() isChromeOsImage_PathOneof {
if m != nil {
return m.PathOneof
}
return nil
}
func (m *ChromeOsImage) GetGsPathPrefix() string {
if x, ok := m.GetPathOneof().(*ChromeOsImage_GsPathPrefix); ok {
return x.GsPathPrefix
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ChromeOsImage) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ChromeOsImage_GsPathPrefix)(nil),
}
}
type FakeOmaha struct {
// name is the resource name of the fake Omaha service.
// Format: fakeOmaha/{fake-omaha-id}
// The implementation MUST set it after creating the fake Omaha service.
// Clients SHOULD NOT set it.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// dut is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
Dut string `protobuf:"bytes,2,opt,name=dut,proto3" json:"dut,omitempty"`
// target_build is the ChromeOS build that the fake Omaha service will serve
// payloads for.
TargetBuild *ChromeOsImage `protobuf:"bytes,3,opt,name=target_build,json=targetBuild,proto3" json:"target_build,omitempty"`
// payloads is the payloads can be served by the fake Omaha service.
Payloads []*FakeOmaha_Payload `protobuf:"bytes,4,rep,name=payloads,proto3" json:"payloads,omitempty"`
// exposed_via_proxy indicates that the fake Omaha service is exposed to a
// DUT via a proxy server, instead of exposing to the DUT directly. So the
// service exposing won't be impacted by rebooting the DUT, disconnecting the
// DUT network, etc.
ExposedViaProxy bool `protobuf:"varint,5,opt,name=exposed_via_proxy,json=exposedViaProxy,proto3" json:"exposed_via_proxy,omitempty"`
// critical_update instructs the fake Omaha created that the update is
// critical if set.
CriticalUpdate bool `protobuf:"varint,6,opt,name=critical_update,json=criticalUpdate,proto3" json:"critical_update,omitempty"`
// return_noupdate_starting indicates from which update check to start returning noupdate.
// It MUST be 0 or greater.
// When set to 0 (the default value), disables returning noupdate.
// If set to positive N, returns noupdate for the Nth check and for every
// check thereafter.
// For example, if set to 1, returns noupdate starting from the first check,
// i.e., always returns noupdate.
ReturnNoupdateStarting int32 `protobuf:"varint,7,opt,name=return_noupdate_starting,json=returnNoupdateStarting,proto3" json:"return_noupdate_starting,omitempty"`
// omaha_url is the current fake Omaha service URL which is reachable from
// the specified DUT.
// The URL can be used as input of the update engine client of the DUT.
// The implementation MUST set it after creating the fake Omaha service.
// Clients SHOULD NOT set it.
OmahaUrl string `protobuf:"bytes,8,opt,name=omaha_url,json=omahaUrl,proto3" json:"omaha_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FakeOmaha) Reset() { *m = FakeOmaha{} }
func (m *FakeOmaha) String() string { return proto.CompactTextString(m) }
func (*FakeOmaha) ProtoMessage() {}
func (*FakeOmaha) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{14}
}
func (m *FakeOmaha) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FakeOmaha.Unmarshal(m, b)
}
func (m *FakeOmaha) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FakeOmaha.Marshal(b, m, deterministic)
}
func (m *FakeOmaha) XXX_Merge(src proto.Message) {
xxx_messageInfo_FakeOmaha.Merge(m, src)
}
func (m *FakeOmaha) XXX_Size() int {
return xxx_messageInfo_FakeOmaha.Size(m)
}
func (m *FakeOmaha) XXX_DiscardUnknown() {
xxx_messageInfo_FakeOmaha.DiscardUnknown(m)
}
var xxx_messageInfo_FakeOmaha proto.InternalMessageInfo
func (m *FakeOmaha) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *FakeOmaha) GetDut() string {
if m != nil {
return m.Dut
}
return ""
}
func (m *FakeOmaha) GetTargetBuild() *ChromeOsImage {
if m != nil {
return m.TargetBuild
}
return nil
}
func (m *FakeOmaha) GetPayloads() []*FakeOmaha_Payload {
if m != nil {
return m.Payloads
}
return nil
}
func (m *FakeOmaha) GetExposedViaProxy() bool {
if m != nil {
return m.ExposedViaProxy
}
return false
}
func (m *FakeOmaha) GetCriticalUpdate() bool {
if m != nil {
return m.CriticalUpdate
}
return false
}
func (m *FakeOmaha) GetReturnNoupdateStarting() int32 {
if m != nil {
return m.ReturnNoupdateStarting
}
return 0
}
func (m *FakeOmaha) GetOmahaUrl() string {
if m != nil {
return m.OmahaUrl
}
return ""
}
type FakeOmaha_Payload struct {
// id is the id of the payload. It MAY be "ROOTFS" or a DLC id, etc.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// type is the payload type, e.g. TYPE_FULL or TYPE_DELTA.
Type FakeOmaha_Payload_Type `protobuf:"varint,2,opt,name=type,proto3,enum=chromiumos.config.api.test.tls.FakeOmaha_Payload_Type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FakeOmaha_Payload) Reset() { *m = FakeOmaha_Payload{} }
func (m *FakeOmaha_Payload) String() string { return proto.CompactTextString(m) }
func (*FakeOmaha_Payload) ProtoMessage() {}
func (*FakeOmaha_Payload) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{14, 0}
}
func (m *FakeOmaha_Payload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FakeOmaha_Payload.Unmarshal(m, b)
}
func (m *FakeOmaha_Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FakeOmaha_Payload.Marshal(b, m, deterministic)
}
func (m *FakeOmaha_Payload) XXX_Merge(src proto.Message) {
xxx_messageInfo_FakeOmaha_Payload.Merge(m, src)
}
func (m *FakeOmaha_Payload) XXX_Size() int {
return xxx_messageInfo_FakeOmaha_Payload.Size(m)
}
func (m *FakeOmaha_Payload) XXX_DiscardUnknown() {
xxx_messageInfo_FakeOmaha_Payload.DiscardUnknown(m)
}
var xxx_messageInfo_FakeOmaha_Payload proto.InternalMessageInfo
func (m *FakeOmaha_Payload) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *FakeOmaha_Payload) GetType() FakeOmaha_Payload_Type {
if m != nil {
return m.Type
}
return FakeOmaha_Payload_TYPE_UNSPECIFIED
}
type CreateFakeOmahaRequest struct {
// fake_omaha is the fake omaha service to be created.
FakeOmaha *FakeOmaha `protobuf:"bytes,1,opt,name=fake_omaha,json=fakeOmaha,proto3" json:"fake_omaha,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateFakeOmahaRequest) Reset() { *m = CreateFakeOmahaRequest{} }
func (m *CreateFakeOmahaRequest) String() string { return proto.CompactTextString(m) }
func (*CreateFakeOmahaRequest) ProtoMessage() {}
func (*CreateFakeOmahaRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{15}
}
func (m *CreateFakeOmahaRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateFakeOmahaRequest.Unmarshal(m, b)
}
func (m *CreateFakeOmahaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateFakeOmahaRequest.Marshal(b, m, deterministic)
}
func (m *CreateFakeOmahaRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateFakeOmahaRequest.Merge(m, src)
}
func (m *CreateFakeOmahaRequest) XXX_Size() int {
return xxx_messageInfo_CreateFakeOmahaRequest.Size(m)
}
func (m *CreateFakeOmahaRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateFakeOmahaRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateFakeOmahaRequest proto.InternalMessageInfo
func (m *CreateFakeOmahaRequest) GetFakeOmaha() *FakeOmaha {
if m != nil {
return m.FakeOmaha
}
return nil
}
type DeleteFakeOmahaRequest struct {
// The resource name of the fake Omaha service to stop.
// Format: fakeOmahaServices/{fake-omaha-id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteFakeOmahaRequest) Reset() { *m = DeleteFakeOmahaRequest{} }
func (m *DeleteFakeOmahaRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteFakeOmahaRequest) ProtoMessage() {}
func (*DeleteFakeOmahaRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_eed48020cdbba475, []int{16}
}
func (m *DeleteFakeOmahaRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteFakeOmahaRequest.Unmarshal(m, b)
}
func (m *DeleteFakeOmahaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteFakeOmahaRequest.Marshal(b, m, deterministic)
}
func (m *DeleteFakeOmahaRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteFakeOmahaRequest.Merge(m, src)
}
func (m *DeleteFakeOmahaRequest) XXX_Size() int {
return xxx_messageInfo_DeleteFakeOmahaRequest.Size(m)
}
func (m *DeleteFakeOmahaRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteFakeOmahaRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteFakeOmahaRequest proto.InternalMessageInfo
func (m *DeleteFakeOmahaRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func init() {
proto.RegisterEnum("chromiumos.config.api.test.tls.Output", Output_name, Output_value)
proto.RegisterEnum("chromiumos.config.api.test.tls.ProvisionDutResponse_Reason", ProvisionDutResponse_Reason_name, ProvisionDutResponse_Reason_value)
proto.RegisterEnum("chromiumos.config.api.test.tls.ProvisionLacrosResponse_Reason", ProvisionLacrosResponse_Reason_name, ProvisionLacrosResponse_Reason_value)
proto.RegisterEnum("chromiumos.config.api.test.tls.FakeOmaha_Payload_Type", FakeOmaha_Payload_Type_name, FakeOmaha_Payload_Type_value)
proto.RegisterType((*ExecDutCommandRequest)(nil), "chromiumos.config.api.test.tls.ExecDutCommandRequest")
proto.RegisterType((*ExecDutCommandResponse)(nil), "chromiumos.config.api.test.tls.ExecDutCommandResponse")
proto.RegisterType((*ExecDutCommandResponse_ExitInfo)(nil), "chromiumos.config.api.test.tls.ExecDutCommandResponse.ExitInfo")
proto.RegisterType((*ProvisionDutRequest)(nil), "chromiumos.config.api.test.tls.ProvisionDutRequest")
proto.RegisterType((*ProvisionDutRequest_ChromeOSImage)(nil), "chromiumos.config.api.test.tls.ProvisionDutRequest.ChromeOSImage")
proto.RegisterType((*ProvisionDutRequest_DLCSpec)(nil), "chromiumos.config.api.test.tls.ProvisionDutRequest.DLCSpec")
proto.RegisterType((*ProvisionDutResponse)(nil), "chromiumos.config.api.test.tls.ProvisionDutResponse")
proto.RegisterType((*ProvisionDutMetadata)(nil), "chromiumos.config.api.test.tls.ProvisionDutMetadata")
proto.RegisterType((*ProvisionLacrosRequest)(nil), "chromiumos.config.api.test.tls.ProvisionLacrosRequest")
proto.RegisterType((*ProvisionLacrosRequest_LacrosImage)(nil), "chromiumos.config.api.test.tls.ProvisionLacrosRequest.LacrosImage")
proto.RegisterType((*ProvisionLacrosResponse)(nil), "chromiumos.config.api.test.tls.ProvisionLacrosResponse")
proto.RegisterType((*ProvisionLacrosMetadata)(nil), "chromiumos.config.api.test.tls.ProvisionLacrosMetadata")
proto.RegisterType((*FetchCrashesRequest)(nil), "chromiumos.config.api.test.tls.FetchCrashesRequest")
proto.RegisterType((*FetchCrashesResponse)(nil), "chromiumos.config.api.test.tls.FetchCrashesResponse")
proto.RegisterType((*CrashInfo)(nil), "chromiumos.config.api.test.tls.CrashInfo")
proto.RegisterType((*CrashMetadata)(nil), "chromiumos.config.api.test.tls.CrashMetadata")
proto.RegisterType((*CrashBlob)(nil), "chromiumos.config.api.test.tls.CrashBlob")
proto.RegisterType((*ChromeOsImage)(nil), "chromiumos.config.api.test.tls.ChromeOsImage")
proto.RegisterType((*FakeOmaha)(nil), "chromiumos.config.api.test.tls.FakeOmaha")
proto.RegisterType((*FakeOmaha_Payload)(nil), "chromiumos.config.api.test.tls.FakeOmaha.Payload")
proto.RegisterType((*CreateFakeOmahaRequest)(nil), "chromiumos.config.api.test.tls.CreateFakeOmahaRequest")
proto.RegisterType((*DeleteFakeOmahaRequest)(nil), "chromiumos.config.api.test.tls.DeleteFakeOmahaRequest")
}
func init() {
proto.RegisterFile("chromiumos/config/api/test/tls/commontls.proto", fileDescriptor_eed48020cdbba475)
}
var fileDescriptor_eed48020cdbba475 = []byte{
// 1572 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0x4f, 0x73, 0xe3, 0x48,
0x15, 0x8f, 0x6c, 0xc7, 0xb1, 0x5f, 0x32, 0x89, 0xa7, 0x37, 0x18, 0x8f, 0x76, 0x76, 0x49, 0x69,
0x61, 0xc9, 0x2c, 0xb3, 0x32, 0x93, 0x61, 0xa6, 0x28, 0xa8, 0x62, 0xca, 0x7f, 0x94, 0x8d, 0x28,
0xc7, 0x36, 0xb2, 0x3d, 0x2c, 0x7f, 0xaa, 0x54, 0x8a, 0xd4, 0x56, 0x54, 0x91, 0xd5, 0xa2, 0xbb,
0x95, 0x4a, 0x8a, 0xe2, 0xc0, 0x85, 0x2f, 0xc0, 0x05, 0xb8, 0x70, 0xe2, 0x23, 0xf0, 0x11, 0xb8,
0x2c, 0x27, 0x8a, 0x2f, 0xc0, 0x37, 0xe0, 0xcc, 0x8d, 0xea, 0x96, 0xac, 0xc4, 0x19, 0xcf, 0x38,
0xc9, 0x9c, 0xf6, 0xa0, 0xaa, 0xd7, 0xaf,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3e, 0x02, 0x98, 0x0a, 0x41,
0xdb, 0x25, 0x14, 0x67, 0xd7, 0x63, 0x55, 0x72, 0x3a, 0x84, 0x62, 0xed, 0xdf, 0x0a, 0xec, 0x2e,
0x1a, 0xca, 0xda, 0xc0, 0x23, 0xa8, 0xb8, 0x82, 0x65, 0x67, 0xe7, 0xa8, 0x68, 0x6d, 0xc8, 0xb5,
0xe9, 0xa1, 0x16, 0xac, 0x4b, 0x32, 0x43, 0xc2, 0x93, 0x95, 0xa7, 0x5f, 0xea, 0x45, 0x53, 0x72,
0xb4, 0x66, 0xa5, 0x9a, 0xe8, 0x15, 0x94, 0x4e, 0x42, 0x72, 0x22, 0xef, 0xe4, 0xdb, 0x5a, 0x68,
0x87, 0xe4, 0xe4, 0x68, 0xcd, 0x92, 0x8a, 0x68, 0x17, 0x4a, 0x32, 0x20, 0xd9, 0x55, 0x05, 0x57,
0xac, 0xda, 0x65, 0x28, 0xc9, 0xec, 0xfc, 0xa1, 0x00, 0xd5, 0xfc, 0xaf, 0xe8, 0x43, 0xd1, 0xd1,
0xb0, 0x6b, 0x5f, 0x83, 0x74, 0x45, 0x30, 0xfa, 0x02, 0xd6, 0x08, 0x4a, 0x31, 0x25, 0xf3, 0x56,
0x2e, 0x69, 0x91, 0xc5, 0x73, 0x9c, 0x76, 0xa2, 0xaa, 0x25, 0x48, 0xc1, 0x61, 0x81, 0x9f, 0xb5,
0x08, 0x41, 0xa2, 0x57, 0xf0, 0x38, 0x88, 0xec, 0x98, 0x12, 0x9f, 0x62, 0xc6, 0xec, 0x20, 0xe2,
0xd8, 0x4f, 0xa7, 0x0a, 0x5b, 0xb8, 0x2d, 0x6f, 0xc6, 0xaa, 0xf5, 0x28, 0x88, 0x86, 0x99, 0x88,
0x79, 0x25, 0x31, 0x16, 0xa5, 0x7a, 0x0c, 0x55, 0x97, 0x84, 0x21, 0x76, 0x39, 0x49, 0xbb, 0x78,
0xd5, 0xba, 0x62, 0x20, 0x03, 0xca, 0xd3, 0x00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c0, 0xf6, 0xe2, 0x40, 0x8d, 0x5e, 0xdc, 0x75,
0x00, 0x97, 0x6e, 0xa9, 0x2f, 0xef, 0x37, 0xb7, 0x7f, 0x5f, 0x41, 0x7f, 0x54, 0x60, 0xeb, 0xfa,
0xd0, 0x80, 0x9e, 0xdf, 0x63, 0xd8, 0x54, 0x3f, 0xd2, 0xd3, 0xf7, 0x9b, 0x7e, 0xed, 0xf5, 0xa5,
0x0f, 0xe6, 0xaf, 0x2f, 0xad, 0xf9, 0x55, 0xeb, 0xe9, 0xf2, 0xb1, 0x0c, 0x2d, 0x9d, 0x58, 0xd0,
0x5f, 0x15, 0xd8, 0xb9, 0xd1, 0x10, 0xd1, 0xcb, 0xfb, 0xcd, 0x21, 0xab, 0x7c, 0x7b, 0xf1, 0x55,
0xeb, 0xe0, 0xad, 0x03, 0x05, 0x7a, 0x5b, 0x5b, 0x46, 0xbf, 0x85, 0xad, 0xeb, 0xdd, 0x74, 0x75,
0xda, 0x96, 0x34, 0x71, 0xf5, 0x07, 0x77, 0x53, 0xca, 0x8b, 0xc6, 0x61, 0xe7, 0xc6, 0x19, 0x58,
0x9d, 0x9d, 0xe5, 0x87, 0x46, 0xbd, 0xfd, 0x01, 0x41, 0x0e, 0xec, 0xdc, 0x38, 0x15, 0xab, 0xff,
0xba, 0xfc, 0x18, 0xa9, 0xf5, 0x79, 0x4d, 0xe6, 0xef, 0x7d, 0xdd, 0x10, 0xef, 0xfd, 0xf6, 0xf3,
0x5f, 0x3e, 0xf3, 0x49, 0x6e, 0x53, 0x27, 0xd4, 0x6f, 0xbe, 0xf9, 0xf6, 0xf7, 0xc9, 0xc2, 0xf3,
0xff, 0xa4, 0x2c, 0x8d, 0x3c, 0xff, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8b, 0xd6, 0xf7, 0xde,
0x94, 0x10, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// CommonClient is the client API for Common service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CommonClient interface {
// ExecDutCommand runs a command on a DUT.
//
// The working directory is /.
// A tty is not spawned for the command.
// The user and group is root.
// All signals have their default dispositions and are not masked.
// The umask is set to 0.
//
// The environment contains:
//
// TERM=dumb
// PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
// LANG=en_US.UTF-8
// USER=root
// HOME=/root
//
// The environment MAY also contain SSH client variables.
// The environment SHALL NOT contain variables not mentioned above.
//
// If the stream is interrupted, the implementation MAY attempt to
// stop the command by sending SIGINT, SIGHUP, SIGTERM, or SIGKILL.
ExecDutCommand(ctx context.Context, in *ExecDutCommandRequest, opts ...grpc.CallOption) (Common_ExecDutCommandClient, error)
// ProvisionDut installs a specified version of Chrome OS on the DUT, along
// with any specified DLCs.
//
// If the DUT is already on the specified version of Chrome OS, the OS will
// not be provisioned.
//
// If the DUT already has the specified list of DLCs, only the missing DLCs
// will be provisioned.
ProvisionDut(ctx context.Context, in *ProvisionDutRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// ProvisionLacros installs a specified version of Lacros on the DUT.
//
// If the DUT already has the specified version of Lacros, Lacros will not be
// provisioned.
ProvisionLacros(ctx context.Context, in *ProvisionLacrosRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// FetchCrashes gets a stream of all crash reports currently on the DUT.
//
// The stream returned may split up a crash over multiple
// `FetchCrashesResponse` protos. See the definition of that proto for
// details.
//
// This call is read-only: it doesn't delete the crashes that it reads.
FetchCrashes(ctx context.Context, in *FetchCrashesRequest, opts ...grpc.CallOption) (Common_FetchCrashesClient, error)
// CreateFakeOmaha starts a fake Omaha service on TLS and exposes the
// listened port to the DUT.
CreateFakeOmaha(ctx context.Context, in *CreateFakeOmahaRequest, opts ...grpc.CallOption) (*FakeOmaha, error)
// DeleteFakeOmaha deletes the specified fake Omaha resource created by
// CreateFakeOmaha.
DeleteFakeOmaha(ctx context.Context, in *DeleteFakeOmahaRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type commonClient struct {
cc *grpc.ClientConn
}
func NewCommonClient(cc *grpc.ClientConn) CommonClient {
return &commonClient{cc}
}
func (c *commonClient) ExecDutCommand(ctx context.Context, in *ExecDutCommandRequest, opts ...grpc.CallOption) (Common_ExecDutCommandClient, error) {
stream, err := c.cc.NewStream(ctx, &_Common_serviceDesc.Streams[0], "/chromiumos.config.api.test.tls.Common/ExecDutCommand", opts...)
if err != nil {
return nil, err
}
x := &commonExecDutCommandClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Common_ExecDutCommandClient interface {
Recv() (*ExecDutCommandResponse, error)
grpc.ClientStream
}
type commonExecDutCommandClient struct {
grpc.ClientStream
}
func (x *commonExecDutCommandClient) Recv() (*ExecDutCommandResponse, error) {
m := new(ExecDutCommandResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *commonClient) ProvisionDut(ctx context.Context, in *ProvisionDutRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Common/ProvisionDut", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *commonClient) ProvisionLacros(ctx context.Context, in *ProvisionLacrosRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Common/ProvisionLacros", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *commonClient) FetchCrashes(ctx context.Context, in *FetchCrashesRequest, opts ...grpc.CallOption) (Common_FetchCrashesClient, error) {
stream, err := c.cc.NewStream(ctx, &_Common_serviceDesc.Streams[1], "/chromiumos.config.api.test.tls.Common/FetchCrashes", opts...)
if err != nil {
return nil, err
}
x := &commonFetchCrashesClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Common_FetchCrashesClient interface {
Recv() (*FetchCrashesResponse, error)
grpc.ClientStream
}
type commonFetchCrashesClient struct {
grpc.ClientStream
}
func (x *commonFetchCrashesClient) Recv() (*FetchCrashesResponse, error) {
m := new(FetchCrashesResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *commonClient) CreateFakeOmaha(ctx context.Context, in *CreateFakeOmahaRequest, opts ...grpc.CallOption) (*FakeOmaha, error) {
out := new(FakeOmaha)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Common/CreateFakeOmaha", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *commonClient) DeleteFakeOmaha(ctx context.Context, in *DeleteFakeOmahaRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Common/DeleteFakeOmaha", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CommonServer is the server API for Common service.
type CommonServer interface {
// ExecDutCommand runs a command on a DUT.
//
// The working directory is /.
// A tty is not spawned for the command.
// The user and group is root.
// All signals have their default dispositions and are not masked.
// The umask is set to 0.
//
// The environment contains:
//
// TERM=dumb
// PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
// LANG=en_US.UTF-8
// USER=root
// HOME=/root
//
// The environment MAY also contain SSH client variables.
// The environment SHALL NOT contain variables not mentioned above.
//
// If the stream is interrupted, the implementation MAY attempt to
// stop the command by sending SIGINT, SIGHUP, SIGTERM, or SIGKILL.
ExecDutCommand(*ExecDutCommandRequest, Common_ExecDutCommandServer) error
// ProvisionDut installs a specified version of Chrome OS on the DUT, along
// with any specified DLCs.
//
// If the DUT is already on the specified version of Chrome OS, the OS will
// not be provisioned.
//
// If the DUT already has the specified list of DLCs, only the missing DLCs
// will be provisioned.
ProvisionDut(context.Context, *ProvisionDutRequest) (*longrunning.Operation, error)
// ProvisionLacros installs a specified version of Lacros on the DUT.
//
// If the DUT already has the specified version of Lacros, Lacros will not be
// provisioned.
ProvisionLacros(context.Context, *ProvisionLacrosRequest) (*longrunning.Operation, error)
// FetchCrashes gets a stream of all crash reports currently on the DUT.
//
// The stream returned may split up a crash over multiple
// `FetchCrashesResponse` protos. See the definition of that proto for
// details.
//
// This call is read-only: it doesn't delete the crashes that it reads.
FetchCrashes(*FetchCrashesRequest, Common_FetchCrashesServer) error
// CreateFakeOmaha starts a fake Omaha service on TLS and exposes the
// listened port to the DUT.
CreateFakeOmaha(context.Context, *CreateFakeOmahaRequest) (*FakeOmaha, error)
// DeleteFakeOmaha deletes the specified fake Omaha resource created by
// CreateFakeOmaha.
DeleteFakeOmaha(context.Context, *DeleteFakeOmahaRequest) (*empty.Empty, error)
}
// UnimplementedCommonServer can be embedded to have forward compatible implementations.
type UnimplementedCommonServer struct {
}
func (*UnimplementedCommonServer) ExecDutCommand(req *ExecDutCommandRequest, srv Common_ExecDutCommandServer) error {
return status.Errorf(codes.Unimplemented, "method ExecDutCommand not implemented")
}
func (*UnimplementedCommonServer) ProvisionDut(ctx context.Context, req *ProvisionDutRequest) (*longrunning.Operation, error) {
return nil, status.Errorf(codes.Unimplemented, "method ProvisionDut not implemented")
}
func (*UnimplementedCommonServer) ProvisionLacros(ctx context.Context, req *ProvisionLacrosRequest) (*longrunning.Operation, error) {
return nil, status.Errorf(codes.Unimplemented, "method ProvisionLacros not implemented")
}
func (*UnimplementedCommonServer) FetchCrashes(req *FetchCrashesRequest, srv Common_FetchCrashesServer) error {
return status.Errorf(codes.Unimplemented, "method FetchCrashes not implemented")
}
func (*UnimplementedCommonServer) CreateFakeOmaha(ctx context.Context, req *CreateFakeOmahaRequest) (*FakeOmaha, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateFakeOmaha not implemented")
}
func (*UnimplementedCommonServer) DeleteFakeOmaha(ctx context.Context, req *DeleteFakeOmahaRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteFakeOmaha not implemented")
}
func RegisterCommonServer(s *grpc.Server, srv CommonServer) {
s.RegisterService(&_Common_serviceDesc, srv)
}
func _Common_ExecDutCommand_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ExecDutCommandRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CommonServer).ExecDutCommand(m, &commonExecDutCommandServer{stream})
}
type Common_ExecDutCommandServer interface {
Send(*ExecDutCommandResponse) error
grpc.ServerStream
}
type commonExecDutCommandServer struct {
grpc.ServerStream
}
func (x *commonExecDutCommandServer) Send(m *ExecDutCommandResponse) error {
return x.ServerStream.SendMsg(m)
}
func _Common_ProvisionDut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ProvisionDutRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommonServer).ProvisionDut(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Common/ProvisionDut",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommonServer).ProvisionDut(ctx, req.(*ProvisionDutRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Common_ProvisionLacros_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ProvisionLacrosRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommonServer).ProvisionLacros(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Common/ProvisionLacros",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommonServer).ProvisionLacros(ctx, req.(*ProvisionLacrosRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Common_FetchCrashes_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(FetchCrashesRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CommonServer).FetchCrashes(m, &commonFetchCrashesServer{stream})
}
type Common_FetchCrashesServer interface {
Send(*FetchCrashesResponse) error
grpc.ServerStream
}
type commonFetchCrashesServer struct {
grpc.ServerStream
}
func (x *commonFetchCrashesServer) Send(m *FetchCrashesResponse) error {
return x.ServerStream.SendMsg(m)
}
func _Common_CreateFakeOmaha_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateFakeOmahaRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommonServer).CreateFakeOmaha(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Common/CreateFakeOmaha",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommonServer).CreateFakeOmaha(ctx, req.(*CreateFakeOmahaRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Common_DeleteFakeOmaha_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteFakeOmahaRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommonServer).DeleteFakeOmaha(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Common/DeleteFakeOmaha",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommonServer).DeleteFakeOmaha(ctx, req.(*DeleteFakeOmahaRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Common_serviceDesc = grpc.ServiceDesc{
ServiceName: "chromiumos.config.api.test.tls.Common",
HandlerType: (*CommonServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ProvisionDut",
Handler: _Common_ProvisionDut_Handler,
},
{
MethodName: "ProvisionLacros",
Handler: _Common_ProvisionLacros_Handler,
},
{
MethodName: "CreateFakeOmaha",
Handler: _Common_CreateFakeOmaha_Handler,
},
{
MethodName: "DeleteFakeOmaha",
Handler: _Common_DeleteFakeOmaha_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "ExecDutCommand",
Handler: _Common_ExecDutCommand_Handler,
ServerStreams: true,
},
{
StreamName: "FetchCrashes",
Handler: _Common_FetchCrashes_Handler,
ServerStreams: true,
},
},
Metadata: "chromiumos/config/api/test/tls/commontls.proto",
}