github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/support_infrastructure/domain_service/service.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: service.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package domain_service is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	service.proto
    10  
    11  It has these top-level messages:
    12  	DomainServiceRequest
    13  	DomainServiceResponse
    14  	TrustedEntities
    15  */
    16  package domain_service
    17  
    18  import proto "github.com/golang/protobuf/proto"
    19  import fmt "fmt"
    20  import math "math"
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  // const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    32  
    33  // TODO: explain different types
    34  type DomainServiceRequestRequestType int32
    35  
    36  const (
    37  	DomainServiceRequest_DOMAIN_CERT_REQUEST DomainServiceRequestRequestType = 1
    38  	DomainServiceRequest_MANAGE_POLICY       DomainServiceRequestRequestType = 2
    39  	DomainServiceRequest_REVOKE_CERTIFICATE  DomainServiceRequestRequestType = 3
    40  	DomainServiceRequest_GET_CRL             DomainServiceRequestRequestType = 4
    41  )
    42  
    43  var DomainServiceRequestRequestType_name = map[int32]string{
    44  	1: "DOMAIN_CERT_REQUEST",
    45  	2: "MANAGE_POLICY",
    46  	3: "REVOKE_CERTIFICATE",
    47  	4: "GET_CRL",
    48  }
    49  var DomainServiceRequestRequestType_value = map[string]int32{
    50  	"DOMAIN_CERT_REQUEST": 1,
    51  	"MANAGE_POLICY":       2,
    52  	"REVOKE_CERTIFICATE":  3,
    53  	"GET_CRL":             4,
    54  }
    55  
    56  func (x DomainServiceRequestRequestType) Enum() *DomainServiceRequestRequestType {
    57  	p := new(DomainServiceRequestRequestType)
    58  	*p = x
    59  	return p
    60  }
    61  func (x DomainServiceRequestRequestType) String() string {
    62  	return proto.EnumName(DomainServiceRequestRequestType_name, int32(x))
    63  }
    64  func (x *DomainServiceRequestRequestType) UnmarshalJSON(data []byte) error {
    65  	value, err := proto.UnmarshalJSONEnum(DomainServiceRequestRequestType_value, data, "DomainServiceRequestRequestType")
    66  	if err != nil {
    67  		return err
    68  	}
    69  	*x = DomainServiceRequestRequestType(value)
    70  	return nil
    71  }
    72  func (DomainServiceRequestRequestType) EnumDescriptor() ([]byte, []int) {
    73  	return fileDescriptor0, []int{0, 0}
    74  }
    75  
    76  type DomainServiceRequest struct {
    77  	Type *DomainServiceRequestRequestType `protobuf:"varint,1,opt,name=type,enum=domain_service.DomainServiceRequestRequestType" json:"type,omitempty"`
    78  	// Fields for type: DOMAIN_CERT_REQUEST.
    79  	SerializedHostAttestation []byte `protobuf:"bytes,2,opt,name=serialized_host_attestation" json:"serialized_host_attestation,omitempty"`
    80  	// The program key, serialized in the format that
    81  	// auth.NewKeyPrin() accepts.
    82  	ProgramKey []byte `protobuf:"bytes,3,opt,name=program_key" json:"program_key,omitempty"`
    83  	// Fields for type: REVOKE_CERTIFICATE.
    84  	// This is an attestation signed by the policy key with the statement:
    85  	// policyKey says revoke certificateSerialNumber
    86  	SerializedPolicyAttestation []byte `protobuf:"bytes,4,opt,name=serialized_policy_attestation" json:"serialized_policy_attestation,omitempty"`
    87  	XXX_unrecognized            []byte `json:"-"`
    88  }
    89  
    90  func (m *DomainServiceRequest) Reset()                    { *m = DomainServiceRequest{} }
    91  func (m *DomainServiceRequest) String() string            { return proto.CompactTextString(m) }
    92  func (*DomainServiceRequest) ProtoMessage()               {}
    93  func (*DomainServiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    94  
    95  func (m *DomainServiceRequest) GetType() DomainServiceRequestRequestType {
    96  	if m != nil && m.Type != nil {
    97  		return *m.Type
    98  	}
    99  	return DomainServiceRequest_DOMAIN_CERT_REQUEST
   100  }
   101  
   102  func (m *DomainServiceRequest) GetSerializedHostAttestation() []byte {
   103  	if m != nil {
   104  		return m.SerializedHostAttestation
   105  	}
   106  	return nil
   107  }
   108  
   109  func (m *DomainServiceRequest) GetProgramKey() []byte {
   110  	if m != nil {
   111  		return m.ProgramKey
   112  	}
   113  	return nil
   114  }
   115  
   116  func (m *DomainServiceRequest) GetSerializedPolicyAttestation() []byte {
   117  	if m != nil {
   118  		return m.SerializedPolicyAttestation
   119  	}
   120  	return nil
   121  }
   122  
   123  type DomainServiceResponse struct {
   124  	ErrorMessage *string `protobuf:"bytes,1,opt,name=error_message" json:"error_message,omitempty"`
   125  	// Fields for response to DOMAIN_CERT_REQUEST.
   126  	DerProgramCert []byte `protobuf:"bytes,2,opt,name=der_program_cert" json:"der_program_cert,omitempty"`
   127  	// Fields for response to GET_CRL.
   128  	Crl              []byte `protobuf:"bytes,3,opt,name=crl" json:"crl,omitempty"`
   129  	XXX_unrecognized []byte `json:"-"`
   130  }
   131  
   132  func (m *DomainServiceResponse) Reset()                    { *m = DomainServiceResponse{} }
   133  func (m *DomainServiceResponse) String() string            { return proto.CompactTextString(m) }
   134  func (*DomainServiceResponse) ProtoMessage()               {}
   135  func (*DomainServiceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
   136  
   137  func (m *DomainServiceResponse) GetErrorMessage() string {
   138  	if m != nil && m.ErrorMessage != nil {
   139  		return *m.ErrorMessage
   140  	}
   141  	return ""
   142  }
   143  
   144  func (m *DomainServiceResponse) GetDerProgramCert() []byte {
   145  	if m != nil {
   146  		return m.DerProgramCert
   147  	}
   148  	return nil
   149  }
   150  
   151  func (m *DomainServiceResponse) GetCrl() []byte {
   152  	if m != nil {
   153  		return m.Crl
   154  	}
   155  	return nil
   156  }
   157  
   158  type TrustedEntities struct {
   159  	TrustedProgramTaoNames []string `protobuf:"bytes,1,rep,name=trusted_program_tao_names" json:"trusted_program_tao_names,omitempty"`
   160  	TrustedHostTaoNames    []string `protobuf:"bytes,2,rep,name=trusted_host_tao_names" json:"trusted_host_tao_names,omitempty"`
   161  	TrustedMachineInfos    []string `protobuf:"bytes,3,rep,name=trusted_machine_infos" json:"trusted_machine_infos,omitempty"`
   162  	TrustedRootCerts       [][]byte `protobuf:"bytes,4,rep,name=trusted_root_certs" json:"trusted_root_certs,omitempty"`
   163  	XXX_unrecognized       []byte   `json:"-"`
   164  }
   165  
   166  func (m *TrustedEntities) Reset()                    { *m = TrustedEntities{} }
   167  func (m *TrustedEntities) String() string            { return proto.CompactTextString(m) }
   168  func (*TrustedEntities) ProtoMessage()               {}
   169  func (*TrustedEntities) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
   170  
   171  func (m *TrustedEntities) GetTrustedProgramTaoNames() []string {
   172  	if m != nil {
   173  		return m.TrustedProgramTaoNames
   174  	}
   175  	return nil
   176  }
   177  
   178  func (m *TrustedEntities) GetTrustedHostTaoNames() []string {
   179  	if m != nil {
   180  		return m.TrustedHostTaoNames
   181  	}
   182  	return nil
   183  }
   184  
   185  func (m *TrustedEntities) GetTrustedMachineInfos() []string {
   186  	if m != nil {
   187  		return m.TrustedMachineInfos
   188  	}
   189  	return nil
   190  }
   191  
   192  func (m *TrustedEntities) GetTrustedRootCerts() [][]byte {
   193  	if m != nil {
   194  		return m.TrustedRootCerts
   195  	}
   196  	return nil
   197  }
   198  
   199  func init() {
   200  	proto.RegisterType((*DomainServiceRequest)(nil), "domain_service.domain_service_request")
   201  	proto.RegisterType((*DomainServiceResponse)(nil), "domain_service.domain_service_response")
   202  	proto.RegisterType((*TrustedEntities)(nil), "domain_service.trusted_entities")
   203  	proto.RegisterEnum("domain_service.DomainServiceRequestRequestType", DomainServiceRequestRequestType_name, DomainServiceRequestRequestType_value)
   204  }
   205  
   206  // func init() { proto.RegisterFile("service.proto", fileDescriptor0) }
   207  
   208  var fileDescriptor0 = []byte{
   209  	// 369 bytes of a gzipped FileDescriptorProto
   210  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x90, 0xdf, 0x6a, 0xdb, 0x30,
   211  	0x14, 0xc6, 0xb1, 0x1d, 0x18, 0x3b, 0xf9, 0x83, 0xa7, 0x90, 0xc4, 0xdb, 0xc8, 0xd8, 0x3c, 0x06,
   212  	0xb9, 0xf2, 0xc5, 0xf6, 0x04, 0xc6, 0xd3, 0x82, 0x59, 0xfe, 0x6c, 0xae, 0xdb, 0xd2, 0x2b, 0x21,
   213  	0x1c, 0x35, 0x11, 0x8d, 0x2d, 0x57, 0x52, 0x0a, 0xe9, 0x53, 0xf4, 0x05, 0xfa, 0xae, 0x55, 0x9c,
   214  	0x98, 0xd6, 0xb4, 0x57, 0x82, 0xef, 0xf7, 0x7d, 0xe7, 0xe8, 0x3b, 0xd0, 0x55, 0x4c, 0xde, 0xf1,
   215  	0x8c, 0x05, 0xa5, 0x14, 0x5a, 0xa0, 0xde, 0x4a, 0xe4, 0x94, 0x17, 0xe4, 0xa4, 0xfa, 0x8f, 0x36,
   216  	0x0c, 0x9b, 0x12, 0x91, 0xec, 0x76, 0xc7, 0x94, 0x46, 0x21, 0xb4, 0xf4, 0xbe, 0x64, 0x9e, 0xf5,
   217  	0xd5, 0x9a, 0xf4, 0x7e, 0xfe, 0x0a, 0x9a, 0xb6, 0xe0, 0xed, 0x54, 0x70, 0x7a, 0xc9, 0x21, 0x8a,
   218  	0xbe, 0xc3, 0x67, 0xc3, 0x39, 0xdd, 0xf2, 0x7b, 0xb6, 0x22, 0x1b, 0x61, 0x74, 0xaa, 0xb5, 0xc1,
   219  	0x54, 0x73, 0x51, 0x78, 0xb6, 0x99, 0xdc, 0x41, 0x7d, 0x68, 0x9b, 0xbf, 0xad, 0x25, 0xcd, 0xc9,
   220  	0x0d, 0xdb, 0x7b, 0x4e, 0x25, 0xfe, 0x80, 0xf1, 0x8b, 0x64, 0x29, 0xb6, 0x3c, 0xdb, 0x37, 0xb2,
   221  	0xad, 0x83, 0xcd, 0x27, 0xd0, 0x69, 0x2c, 0x1c, 0x41, 0xff, 0xf7, 0x72, 0x1e, 0xc6, 0x0b, 0x12,
   222  	0xe1, 0x24, 0x25, 0x09, 0xfe, 0x7f, 0x8e, 0xcf, 0x52, 0xd7, 0x42, 0x1f, 0xa0, 0x3b, 0x0f, 0x17,
   223  	0xe1, 0x14, 0x93, 0x7f, 0xcb, 0x59, 0x1c, 0x5d, 0xb9, 0x36, 0x1a, 0x02, 0x4a, 0xf0, 0xc5, 0xf2,
   224  	0x2f, 0xae, 0xbc, 0xf1, 0x9f, 0x38, 0x0a, 0x53, 0xec, 0x3a, 0xa8, 0x0d, 0xef, 0xa6, 0x38, 0x25,
   225  	0x51, 0x32, 0x73, 0x5b, 0xfe, 0x25, 0x8c, 0x5e, 0x15, 0x55, 0xa5, 0x28, 0x14, 0x43, 0x03, 0xe8,
   226  	0x32, 0x29, 0x85, 0x24, 0x39, 0x53, 0x8a, 0xae, 0x8f, 0x87, 0x7a, 0x8f, 0x3c, 0x70, 0x57, 0x4c,
   227  	0x92, 0xba, 0x52, 0xc6, 0xa4, 0x3e, 0x15, 0x6d, 0x83, 0x93, 0xc9, 0xed, 0xb1, 0xa0, 0xff, 0x60,
   228  	0x81, 0xab, 0xe5, 0x4e, 0x69, 0x53, 0x8f, 0x15, 0x9a, 0x6b, 0xce, 0x14, 0xfa, 0x06, 0x1f, 0x6b,
   229  	0xad, 0xce, 0x6b, 0x2a, 0x48, 0x41, 0xcd, 0x0a, 0x33, 0xde, 0x31, 0xe3, 0xbf, 0xc0, 0xb0, 0xb6,
   230  	0x54, 0xf7, 0x7c, 0xe6, 0x76, 0xc5, 0xc7, 0x30, 0xa8, 0x79, 0x4e, 0xb3, 0x0d, 0x2f, 0x18, 0xe1,
   231  	0xc5, 0xb5, 0x50, 0x66, 0xed, 0x01, 0x7f, 0x02, 0x54, 0x63, 0x29, 0x84, 0xae, 0xbe, 0xa7, 0xcc,
   232  	0x31, 0x9d, 0x49, 0xe7, 0x29, 0x00, 0x00, 0xff, 0xff, 0x16, 0x20, 0x58, 0x89, 0x2b, 0x02, 0x00,
   233  	0x00,
   234  }