github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/client/proto/joinservice.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: teleport/legacy/client/proto/joinservice.proto
     3  
     4  package proto
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	types "github.com/gravitational/teleport/api/types"
    11  	grpc "google.golang.org/grpc"
    12  	codes "google.golang.org/grpc/codes"
    13  	status "google.golang.org/grpc/status"
    14  	io "io"
    15  	math "math"
    16  	math_bits "math/bits"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = fmt.Errorf
    22  var _ = math.Inf
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  // TODO(nklaassen): Document me.
    31  type RegisterUsingIAMMethodRequest struct {
    32  	// RegisterUsingTokenRequest holds registration parameters common to all
    33  	// join methods.
    34  	RegisterUsingTokenRequest *types.RegisterUsingTokenRequest `protobuf:"bytes,1,opt,name=register_using_token_request,json=registerUsingTokenRequest,proto3" json:"register_using_token_request,omitempty"`
    35  	// StsIdentityRequest is a signed HTTP request to the AWS
    36  	// sts:GetCallerIdentity API endpoint used to prove the AWS identity of a
    37  	// joining node. It must include the challenge string as a signed header.
    38  	StsIdentityRequest   []byte   `protobuf:"bytes,2,opt,name=sts_identity_request,json=stsIdentityRequest,proto3" json:"sts_identity_request,omitempty"`
    39  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    40  	XXX_unrecognized     []byte   `json:"-"`
    41  	XXX_sizecache        int32    `json:"-"`
    42  }
    43  
    44  func (m *RegisterUsingIAMMethodRequest) Reset()         { *m = RegisterUsingIAMMethodRequest{} }
    45  func (m *RegisterUsingIAMMethodRequest) String() string { return proto.CompactTextString(m) }
    46  func (*RegisterUsingIAMMethodRequest) ProtoMessage()    {}
    47  func (*RegisterUsingIAMMethodRequest) Descriptor() ([]byte, []int) {
    48  	return fileDescriptor_d7e760ce923b836e, []int{0}
    49  }
    50  func (m *RegisterUsingIAMMethodRequest) XXX_Unmarshal(b []byte) error {
    51  	return m.Unmarshal(b)
    52  }
    53  func (m *RegisterUsingIAMMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    54  	if deterministic {
    55  		return xxx_messageInfo_RegisterUsingIAMMethodRequest.Marshal(b, m, deterministic)
    56  	} else {
    57  		b = b[:cap(b)]
    58  		n, err := m.MarshalToSizedBuffer(b)
    59  		if err != nil {
    60  			return nil, err
    61  		}
    62  		return b[:n], nil
    63  	}
    64  }
    65  func (m *RegisterUsingIAMMethodRequest) XXX_Merge(src proto.Message) {
    66  	xxx_messageInfo_RegisterUsingIAMMethodRequest.Merge(m, src)
    67  }
    68  func (m *RegisterUsingIAMMethodRequest) XXX_Size() int {
    69  	return m.Size()
    70  }
    71  func (m *RegisterUsingIAMMethodRequest) XXX_DiscardUnknown() {
    72  	xxx_messageInfo_RegisterUsingIAMMethodRequest.DiscardUnknown(m)
    73  }
    74  
    75  var xxx_messageInfo_RegisterUsingIAMMethodRequest proto.InternalMessageInfo
    76  
    77  func (m *RegisterUsingIAMMethodRequest) GetRegisterUsingTokenRequest() *types.RegisterUsingTokenRequest {
    78  	if m != nil {
    79  		return m.RegisterUsingTokenRequest
    80  	}
    81  	return nil
    82  }
    83  
    84  func (m *RegisterUsingIAMMethodRequest) GetStsIdentityRequest() []byte {
    85  	if m != nil {
    86  		return m.StsIdentityRequest
    87  	}
    88  	return nil
    89  }
    90  
    91  // RegisterUsingIAMMethodResponse is a stream response and will contain either a
    92  // Challenge or signed Certs to join the cluster.
    93  type RegisterUsingIAMMethodResponse struct {
    94  	// Challenge is a crypto-random string that should be included in the signed
    95  	// sts:GetCallerIdentity request.
    96  	Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
    97  	// Certs is the returned signed certs.
    98  	Certs                *Certs   `protobuf:"bytes,2,opt,name=certs,proto3" json:"certs,omitempty"`
    99  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   100  	XXX_unrecognized     []byte   `json:"-"`
   101  	XXX_sizecache        int32    `json:"-"`
   102  }
   103  
   104  func (m *RegisterUsingIAMMethodResponse) Reset()         { *m = RegisterUsingIAMMethodResponse{} }
   105  func (m *RegisterUsingIAMMethodResponse) String() string { return proto.CompactTextString(m) }
   106  func (*RegisterUsingIAMMethodResponse) ProtoMessage()    {}
   107  func (*RegisterUsingIAMMethodResponse) Descriptor() ([]byte, []int) {
   108  	return fileDescriptor_d7e760ce923b836e, []int{1}
   109  }
   110  func (m *RegisterUsingIAMMethodResponse) XXX_Unmarshal(b []byte) error {
   111  	return m.Unmarshal(b)
   112  }
   113  func (m *RegisterUsingIAMMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   114  	if deterministic {
   115  		return xxx_messageInfo_RegisterUsingIAMMethodResponse.Marshal(b, m, deterministic)
   116  	} else {
   117  		b = b[:cap(b)]
   118  		n, err := m.MarshalToSizedBuffer(b)
   119  		if err != nil {
   120  			return nil, err
   121  		}
   122  		return b[:n], nil
   123  	}
   124  }
   125  func (m *RegisterUsingIAMMethodResponse) XXX_Merge(src proto.Message) {
   126  	xxx_messageInfo_RegisterUsingIAMMethodResponse.Merge(m, src)
   127  }
   128  func (m *RegisterUsingIAMMethodResponse) XXX_Size() int {
   129  	return m.Size()
   130  }
   131  func (m *RegisterUsingIAMMethodResponse) XXX_DiscardUnknown() {
   132  	xxx_messageInfo_RegisterUsingIAMMethodResponse.DiscardUnknown(m)
   133  }
   134  
   135  var xxx_messageInfo_RegisterUsingIAMMethodResponse proto.InternalMessageInfo
   136  
   137  func (m *RegisterUsingIAMMethodResponse) GetChallenge() string {
   138  	if m != nil {
   139  		return m.Challenge
   140  	}
   141  	return ""
   142  }
   143  
   144  func (m *RegisterUsingIAMMethodResponse) GetCerts() *Certs {
   145  	if m != nil {
   146  		return m.Certs
   147  	}
   148  	return nil
   149  }
   150  
   151  // RegisterUsingAzureMethodRequest is the request for registration via the Azure
   152  // join method.
   153  type RegisterUsingAzureMethodRequest struct {
   154  	// RegisterUsingTokenRequest holds registration parameters common to all
   155  	// join methods.
   156  	RegisterUsingTokenRequest *types.RegisterUsingTokenRequest `protobuf:"bytes,1,opt,name=register_using_token_request,json=registerUsingTokenRequest,proto3" json:"register_using_token_request,omitempty"`
   157  	// AttestedData is a signed JSON document from an Azure VM's attested data
   158  	// metadata endpoint used to prove the identity of a joining node. It must
   159  	// include the challenge string as the nonce.
   160  	AttestedData []byte `protobuf:"bytes,2,opt,name=attested_data,json=attestedData,proto3" json:"attested_data,omitempty"`
   161  	// AccessToken is a JWT signed by Azure, used to prove the identity of a
   162  	// joining node.
   163  	AccessToken          string   `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
   164  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   165  	XXX_unrecognized     []byte   `json:"-"`
   166  	XXX_sizecache        int32    `json:"-"`
   167  }
   168  
   169  func (m *RegisterUsingAzureMethodRequest) Reset()         { *m = RegisterUsingAzureMethodRequest{} }
   170  func (m *RegisterUsingAzureMethodRequest) String() string { return proto.CompactTextString(m) }
   171  func (*RegisterUsingAzureMethodRequest) ProtoMessage()    {}
   172  func (*RegisterUsingAzureMethodRequest) Descriptor() ([]byte, []int) {
   173  	return fileDescriptor_d7e760ce923b836e, []int{2}
   174  }
   175  func (m *RegisterUsingAzureMethodRequest) XXX_Unmarshal(b []byte) error {
   176  	return m.Unmarshal(b)
   177  }
   178  func (m *RegisterUsingAzureMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   179  	if deterministic {
   180  		return xxx_messageInfo_RegisterUsingAzureMethodRequest.Marshal(b, m, deterministic)
   181  	} else {
   182  		b = b[:cap(b)]
   183  		n, err := m.MarshalToSizedBuffer(b)
   184  		if err != nil {
   185  			return nil, err
   186  		}
   187  		return b[:n], nil
   188  	}
   189  }
   190  func (m *RegisterUsingAzureMethodRequest) XXX_Merge(src proto.Message) {
   191  	xxx_messageInfo_RegisterUsingAzureMethodRequest.Merge(m, src)
   192  }
   193  func (m *RegisterUsingAzureMethodRequest) XXX_Size() int {
   194  	return m.Size()
   195  }
   196  func (m *RegisterUsingAzureMethodRequest) XXX_DiscardUnknown() {
   197  	xxx_messageInfo_RegisterUsingAzureMethodRequest.DiscardUnknown(m)
   198  }
   199  
   200  var xxx_messageInfo_RegisterUsingAzureMethodRequest proto.InternalMessageInfo
   201  
   202  func (m *RegisterUsingAzureMethodRequest) GetRegisterUsingTokenRequest() *types.RegisterUsingTokenRequest {
   203  	if m != nil {
   204  		return m.RegisterUsingTokenRequest
   205  	}
   206  	return nil
   207  }
   208  
   209  func (m *RegisterUsingAzureMethodRequest) GetAttestedData() []byte {
   210  	if m != nil {
   211  		return m.AttestedData
   212  	}
   213  	return nil
   214  }
   215  
   216  func (m *RegisterUsingAzureMethodRequest) GetAccessToken() string {
   217  	if m != nil {
   218  		return m.AccessToken
   219  	}
   220  	return ""
   221  }
   222  
   223  // RegisterUsingAzureMethodResponse is a stream response and will contain either
   224  // a Challenge or signed Certs to join the cluster.
   225  type RegisterUsingAzureMethodResponse struct {
   226  	// Challenge is a crypto-random string that should be included in the signed
   227  	// attested data.
   228  	Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
   229  	// Certs is the returned signed certs.
   230  	Certs                *Certs   `protobuf:"bytes,2,opt,name=certs,proto3" json:"certs,omitempty"`
   231  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   232  	XXX_unrecognized     []byte   `json:"-"`
   233  	XXX_sizecache        int32    `json:"-"`
   234  }
   235  
   236  func (m *RegisterUsingAzureMethodResponse) Reset()         { *m = RegisterUsingAzureMethodResponse{} }
   237  func (m *RegisterUsingAzureMethodResponse) String() string { return proto.CompactTextString(m) }
   238  func (*RegisterUsingAzureMethodResponse) ProtoMessage()    {}
   239  func (*RegisterUsingAzureMethodResponse) Descriptor() ([]byte, []int) {
   240  	return fileDescriptor_d7e760ce923b836e, []int{3}
   241  }
   242  func (m *RegisterUsingAzureMethodResponse) XXX_Unmarshal(b []byte) error {
   243  	return m.Unmarshal(b)
   244  }
   245  func (m *RegisterUsingAzureMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   246  	if deterministic {
   247  		return xxx_messageInfo_RegisterUsingAzureMethodResponse.Marshal(b, m, deterministic)
   248  	} else {
   249  		b = b[:cap(b)]
   250  		n, err := m.MarshalToSizedBuffer(b)
   251  		if err != nil {
   252  			return nil, err
   253  		}
   254  		return b[:n], nil
   255  	}
   256  }
   257  func (m *RegisterUsingAzureMethodResponse) XXX_Merge(src proto.Message) {
   258  	xxx_messageInfo_RegisterUsingAzureMethodResponse.Merge(m, src)
   259  }
   260  func (m *RegisterUsingAzureMethodResponse) XXX_Size() int {
   261  	return m.Size()
   262  }
   263  func (m *RegisterUsingAzureMethodResponse) XXX_DiscardUnknown() {
   264  	xxx_messageInfo_RegisterUsingAzureMethodResponse.DiscardUnknown(m)
   265  }
   266  
   267  var xxx_messageInfo_RegisterUsingAzureMethodResponse proto.InternalMessageInfo
   268  
   269  func (m *RegisterUsingAzureMethodResponse) GetChallenge() string {
   270  	if m != nil {
   271  		return m.Challenge
   272  	}
   273  	return ""
   274  }
   275  
   276  func (m *RegisterUsingAzureMethodResponse) GetCerts() *Certs {
   277  	if m != nil {
   278  		return m.Certs
   279  	}
   280  	return nil
   281  }
   282  
   283  // The enrollment challenge response containing the solution returned by
   284  // calling the TPM2.0 `ActivateCredential` command on the client with the
   285  // parameters provided in `TPMEncryptedCredential`.
   286  type RegisterUsingTPMMethodChallengeResponse struct {
   287  	// The client's solution to `TPMEncryptedCredential` included in
   288  	// `TPMEncryptedCredential` using ActivateCredential.
   289  	Solution             []byte   `protobuf:"bytes,1,opt,name=solution,proto3" json:"solution,omitempty"`
   290  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   291  	XXX_unrecognized     []byte   `json:"-"`
   292  	XXX_sizecache        int32    `json:"-"`
   293  }
   294  
   295  func (m *RegisterUsingTPMMethodChallengeResponse) Reset() {
   296  	*m = RegisterUsingTPMMethodChallengeResponse{}
   297  }
   298  func (m *RegisterUsingTPMMethodChallengeResponse) String() string { return proto.CompactTextString(m) }
   299  func (*RegisterUsingTPMMethodChallengeResponse) ProtoMessage()    {}
   300  func (*RegisterUsingTPMMethodChallengeResponse) Descriptor() ([]byte, []int) {
   301  	return fileDescriptor_d7e760ce923b836e, []int{4}
   302  }
   303  func (m *RegisterUsingTPMMethodChallengeResponse) XXX_Unmarshal(b []byte) error {
   304  	return m.Unmarshal(b)
   305  }
   306  func (m *RegisterUsingTPMMethodChallengeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   307  	if deterministic {
   308  		return xxx_messageInfo_RegisterUsingTPMMethodChallengeResponse.Marshal(b, m, deterministic)
   309  	} else {
   310  		b = b[:cap(b)]
   311  		n, err := m.MarshalToSizedBuffer(b)
   312  		if err != nil {
   313  			return nil, err
   314  		}
   315  		return b[:n], nil
   316  	}
   317  }
   318  func (m *RegisterUsingTPMMethodChallengeResponse) XXX_Merge(src proto.Message) {
   319  	xxx_messageInfo_RegisterUsingTPMMethodChallengeResponse.Merge(m, src)
   320  }
   321  func (m *RegisterUsingTPMMethodChallengeResponse) XXX_Size() int {
   322  	return m.Size()
   323  }
   324  func (m *RegisterUsingTPMMethodChallengeResponse) XXX_DiscardUnknown() {
   325  	xxx_messageInfo_RegisterUsingTPMMethodChallengeResponse.DiscardUnknown(m)
   326  }
   327  
   328  var xxx_messageInfo_RegisterUsingTPMMethodChallengeResponse proto.InternalMessageInfo
   329  
   330  func (m *RegisterUsingTPMMethodChallengeResponse) GetSolution() []byte {
   331  	if m != nil {
   332  		return m.Solution
   333  	}
   334  	return nil
   335  }
   336  
   337  // The initial payload sent from the client to the server during a TPM join
   338  // request.
   339  type RegisterUsingTPMMethodInitialRequest struct {
   340  	// Holds the registration parameters shared by all join methods.
   341  	JoinRequest *types.RegisterUsingTokenRequest `protobuf:"bytes,1,opt,name=join_request,json=joinRequest,proto3" json:"join_request,omitempty"`
   342  	// Types that are valid to be assigned to Ek:
   343  	//	*RegisterUsingTPMMethodInitialRequest_EkCert
   344  	//	*RegisterUsingTPMMethodInitialRequest_EkKey
   345  	Ek isRegisterUsingTPMMethodInitialRequest_Ek `protobuf_oneof:"ek"`
   346  	// The attestation key and the parameters necessary to remotely verify it as
   347  	// related to the endorsement key.
   348  	AttestationParams    *TPMAttestationParameters `protobuf:"bytes,4,opt,name=attestation_params,json=attestationParams,proto3" json:"attestation_params,omitempty"`
   349  	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
   350  	XXX_unrecognized     []byte                    `json:"-"`
   351  	XXX_sizecache        int32                     `json:"-"`
   352  }
   353  
   354  func (m *RegisterUsingTPMMethodInitialRequest) Reset()         { *m = RegisterUsingTPMMethodInitialRequest{} }
   355  func (m *RegisterUsingTPMMethodInitialRequest) String() string { return proto.CompactTextString(m) }
   356  func (*RegisterUsingTPMMethodInitialRequest) ProtoMessage()    {}
   357  func (*RegisterUsingTPMMethodInitialRequest) Descriptor() ([]byte, []int) {
   358  	return fileDescriptor_d7e760ce923b836e, []int{5}
   359  }
   360  func (m *RegisterUsingTPMMethodInitialRequest) XXX_Unmarshal(b []byte) error {
   361  	return m.Unmarshal(b)
   362  }
   363  func (m *RegisterUsingTPMMethodInitialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   364  	if deterministic {
   365  		return xxx_messageInfo_RegisterUsingTPMMethodInitialRequest.Marshal(b, m, deterministic)
   366  	} else {
   367  		b = b[:cap(b)]
   368  		n, err := m.MarshalToSizedBuffer(b)
   369  		if err != nil {
   370  			return nil, err
   371  		}
   372  		return b[:n], nil
   373  	}
   374  }
   375  func (m *RegisterUsingTPMMethodInitialRequest) XXX_Merge(src proto.Message) {
   376  	xxx_messageInfo_RegisterUsingTPMMethodInitialRequest.Merge(m, src)
   377  }
   378  func (m *RegisterUsingTPMMethodInitialRequest) XXX_Size() int {
   379  	return m.Size()
   380  }
   381  func (m *RegisterUsingTPMMethodInitialRequest) XXX_DiscardUnknown() {
   382  	xxx_messageInfo_RegisterUsingTPMMethodInitialRequest.DiscardUnknown(m)
   383  }
   384  
   385  var xxx_messageInfo_RegisterUsingTPMMethodInitialRequest proto.InternalMessageInfo
   386  
   387  type isRegisterUsingTPMMethodInitialRequest_Ek interface {
   388  	isRegisterUsingTPMMethodInitialRequest_Ek()
   389  	MarshalTo([]byte) (int, error)
   390  	Size() int
   391  }
   392  
   393  type RegisterUsingTPMMethodInitialRequest_EkCert struct {
   394  	EkCert []byte `protobuf:"bytes,2,opt,name=ek_cert,json=ekCert,proto3,oneof" json:"ek_cert,omitempty"`
   395  }
   396  type RegisterUsingTPMMethodInitialRequest_EkKey struct {
   397  	EkKey []byte `protobuf:"bytes,3,opt,name=ek_key,json=ekKey,proto3,oneof" json:"ek_key,omitempty"`
   398  }
   399  
   400  func (*RegisterUsingTPMMethodInitialRequest_EkCert) isRegisterUsingTPMMethodInitialRequest_Ek() {}
   401  func (*RegisterUsingTPMMethodInitialRequest_EkKey) isRegisterUsingTPMMethodInitialRequest_Ek()  {}
   402  
   403  func (m *RegisterUsingTPMMethodInitialRequest) GetEk() isRegisterUsingTPMMethodInitialRequest_Ek {
   404  	if m != nil {
   405  		return m.Ek
   406  	}
   407  	return nil
   408  }
   409  
   410  func (m *RegisterUsingTPMMethodInitialRequest) GetJoinRequest() *types.RegisterUsingTokenRequest {
   411  	if m != nil {
   412  		return m.JoinRequest
   413  	}
   414  	return nil
   415  }
   416  
   417  func (m *RegisterUsingTPMMethodInitialRequest) GetEkCert() []byte {
   418  	if x, ok := m.GetEk().(*RegisterUsingTPMMethodInitialRequest_EkCert); ok {
   419  		return x.EkCert
   420  	}
   421  	return nil
   422  }
   423  
   424  func (m *RegisterUsingTPMMethodInitialRequest) GetEkKey() []byte {
   425  	if x, ok := m.GetEk().(*RegisterUsingTPMMethodInitialRequest_EkKey); ok {
   426  		return x.EkKey
   427  	}
   428  	return nil
   429  }
   430  
   431  func (m *RegisterUsingTPMMethodInitialRequest) GetAttestationParams() *TPMAttestationParameters {
   432  	if m != nil {
   433  		return m.AttestationParams
   434  	}
   435  	return nil
   436  }
   437  
   438  // XXX_OneofWrappers is for the internal use of the proto package.
   439  func (*RegisterUsingTPMMethodInitialRequest) XXX_OneofWrappers() []interface{} {
   440  	return []interface{}{
   441  		(*RegisterUsingTPMMethodInitialRequest_EkCert)(nil),
   442  		(*RegisterUsingTPMMethodInitialRequest_EkKey)(nil),
   443  	}
   444  }
   445  
   446  // RegisterUsingTPMMethodRequest is the streaming request type for the
   447  // RegisterUsingTPMMethod RPC.
   448  type RegisterUsingTPMMethodRequest struct {
   449  	// Types that are valid to be assigned to Payload:
   450  	//	*RegisterUsingTPMMethodRequest_Init
   451  	//	*RegisterUsingTPMMethodRequest_ChallengeResponse
   452  	Payload              isRegisterUsingTPMMethodRequest_Payload `protobuf_oneof:"payload"`
   453  	XXX_NoUnkeyedLiteral struct{}                                `json:"-"`
   454  	XXX_unrecognized     []byte                                  `json:"-"`
   455  	XXX_sizecache        int32                                   `json:"-"`
   456  }
   457  
   458  func (m *RegisterUsingTPMMethodRequest) Reset()         { *m = RegisterUsingTPMMethodRequest{} }
   459  func (m *RegisterUsingTPMMethodRequest) String() string { return proto.CompactTextString(m) }
   460  func (*RegisterUsingTPMMethodRequest) ProtoMessage()    {}
   461  func (*RegisterUsingTPMMethodRequest) Descriptor() ([]byte, []int) {
   462  	return fileDescriptor_d7e760ce923b836e, []int{6}
   463  }
   464  func (m *RegisterUsingTPMMethodRequest) XXX_Unmarshal(b []byte) error {
   465  	return m.Unmarshal(b)
   466  }
   467  func (m *RegisterUsingTPMMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   468  	if deterministic {
   469  		return xxx_messageInfo_RegisterUsingTPMMethodRequest.Marshal(b, m, deterministic)
   470  	} else {
   471  		b = b[:cap(b)]
   472  		n, err := m.MarshalToSizedBuffer(b)
   473  		if err != nil {
   474  			return nil, err
   475  		}
   476  		return b[:n], nil
   477  	}
   478  }
   479  func (m *RegisterUsingTPMMethodRequest) XXX_Merge(src proto.Message) {
   480  	xxx_messageInfo_RegisterUsingTPMMethodRequest.Merge(m, src)
   481  }
   482  func (m *RegisterUsingTPMMethodRequest) XXX_Size() int {
   483  	return m.Size()
   484  }
   485  func (m *RegisterUsingTPMMethodRequest) XXX_DiscardUnknown() {
   486  	xxx_messageInfo_RegisterUsingTPMMethodRequest.DiscardUnknown(m)
   487  }
   488  
   489  var xxx_messageInfo_RegisterUsingTPMMethodRequest proto.InternalMessageInfo
   490  
   491  type isRegisterUsingTPMMethodRequest_Payload interface {
   492  	isRegisterUsingTPMMethodRequest_Payload()
   493  	MarshalTo([]byte) (int, error)
   494  	Size() int
   495  }
   496  
   497  type RegisterUsingTPMMethodRequest_Init struct {
   498  	Init *RegisterUsingTPMMethodInitialRequest `protobuf:"bytes,1,opt,name=init,proto3,oneof" json:"init,omitempty"`
   499  }
   500  type RegisterUsingTPMMethodRequest_ChallengeResponse struct {
   501  	ChallengeResponse *RegisterUsingTPMMethodChallengeResponse `protobuf:"bytes,2,opt,name=challenge_response,json=challengeResponse,proto3,oneof" json:"challenge_response,omitempty"`
   502  }
   503  
   504  func (*RegisterUsingTPMMethodRequest_Init) isRegisterUsingTPMMethodRequest_Payload()              {}
   505  func (*RegisterUsingTPMMethodRequest_ChallengeResponse) isRegisterUsingTPMMethodRequest_Payload() {}
   506  
   507  func (m *RegisterUsingTPMMethodRequest) GetPayload() isRegisterUsingTPMMethodRequest_Payload {
   508  	if m != nil {
   509  		return m.Payload
   510  	}
   511  	return nil
   512  }
   513  
   514  func (m *RegisterUsingTPMMethodRequest) GetInit() *RegisterUsingTPMMethodInitialRequest {
   515  	if x, ok := m.GetPayload().(*RegisterUsingTPMMethodRequest_Init); ok {
   516  		return x.Init
   517  	}
   518  	return nil
   519  }
   520  
   521  func (m *RegisterUsingTPMMethodRequest) GetChallengeResponse() *RegisterUsingTPMMethodChallengeResponse {
   522  	if x, ok := m.GetPayload().(*RegisterUsingTPMMethodRequest_ChallengeResponse); ok {
   523  		return x.ChallengeResponse
   524  	}
   525  	return nil
   526  }
   527  
   528  // XXX_OneofWrappers is for the internal use of the proto package.
   529  func (*RegisterUsingTPMMethodRequest) XXX_OneofWrappers() []interface{} {
   530  	return []interface{}{
   531  		(*RegisterUsingTPMMethodRequest_Init)(nil),
   532  		(*RegisterUsingTPMMethodRequest_ChallengeResponse)(nil),
   533  	}
   534  }
   535  
   536  // RegisterUsingTPMMethodResponse is the streaming response type for the
   537  // RegisterUsingTPMMethod RPC.
   538  type RegisterUsingTPMMethodResponse struct {
   539  	// Types that are valid to be assigned to Payload:
   540  	//	*RegisterUsingTPMMethodResponse_ChallengeRequest
   541  	//	*RegisterUsingTPMMethodResponse_Certs
   542  	Payload              isRegisterUsingTPMMethodResponse_Payload `protobuf_oneof:"payload"`
   543  	XXX_NoUnkeyedLiteral struct{}                                 `json:"-"`
   544  	XXX_unrecognized     []byte                                   `json:"-"`
   545  	XXX_sizecache        int32                                    `json:"-"`
   546  }
   547  
   548  func (m *RegisterUsingTPMMethodResponse) Reset()         { *m = RegisterUsingTPMMethodResponse{} }
   549  func (m *RegisterUsingTPMMethodResponse) String() string { return proto.CompactTextString(m) }
   550  func (*RegisterUsingTPMMethodResponse) ProtoMessage()    {}
   551  func (*RegisterUsingTPMMethodResponse) Descriptor() ([]byte, []int) {
   552  	return fileDescriptor_d7e760ce923b836e, []int{7}
   553  }
   554  func (m *RegisterUsingTPMMethodResponse) XXX_Unmarshal(b []byte) error {
   555  	return m.Unmarshal(b)
   556  }
   557  func (m *RegisterUsingTPMMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   558  	if deterministic {
   559  		return xxx_messageInfo_RegisterUsingTPMMethodResponse.Marshal(b, m, deterministic)
   560  	} else {
   561  		b = b[:cap(b)]
   562  		n, err := m.MarshalToSizedBuffer(b)
   563  		if err != nil {
   564  			return nil, err
   565  		}
   566  		return b[:n], nil
   567  	}
   568  }
   569  func (m *RegisterUsingTPMMethodResponse) XXX_Merge(src proto.Message) {
   570  	xxx_messageInfo_RegisterUsingTPMMethodResponse.Merge(m, src)
   571  }
   572  func (m *RegisterUsingTPMMethodResponse) XXX_Size() int {
   573  	return m.Size()
   574  }
   575  func (m *RegisterUsingTPMMethodResponse) XXX_DiscardUnknown() {
   576  	xxx_messageInfo_RegisterUsingTPMMethodResponse.DiscardUnknown(m)
   577  }
   578  
   579  var xxx_messageInfo_RegisterUsingTPMMethodResponse proto.InternalMessageInfo
   580  
   581  type isRegisterUsingTPMMethodResponse_Payload interface {
   582  	isRegisterUsingTPMMethodResponse_Payload()
   583  	MarshalTo([]byte) (int, error)
   584  	Size() int
   585  }
   586  
   587  type RegisterUsingTPMMethodResponse_ChallengeRequest struct {
   588  	ChallengeRequest *TPMEncryptedCredential `protobuf:"bytes,1,opt,name=challenge_request,json=challengeRequest,proto3,oneof" json:"challenge_request,omitempty"`
   589  }
   590  type RegisterUsingTPMMethodResponse_Certs struct {
   591  	Certs *Certs `protobuf:"bytes,2,opt,name=certs,proto3,oneof" json:"certs,omitempty"`
   592  }
   593  
   594  func (*RegisterUsingTPMMethodResponse_ChallengeRequest) isRegisterUsingTPMMethodResponse_Payload() {}
   595  func (*RegisterUsingTPMMethodResponse_Certs) isRegisterUsingTPMMethodResponse_Payload()            {}
   596  
   597  func (m *RegisterUsingTPMMethodResponse) GetPayload() isRegisterUsingTPMMethodResponse_Payload {
   598  	if m != nil {
   599  		return m.Payload
   600  	}
   601  	return nil
   602  }
   603  
   604  func (m *RegisterUsingTPMMethodResponse) GetChallengeRequest() *TPMEncryptedCredential {
   605  	if x, ok := m.GetPayload().(*RegisterUsingTPMMethodResponse_ChallengeRequest); ok {
   606  		return x.ChallengeRequest
   607  	}
   608  	return nil
   609  }
   610  
   611  func (m *RegisterUsingTPMMethodResponse) GetCerts() *Certs {
   612  	if x, ok := m.GetPayload().(*RegisterUsingTPMMethodResponse_Certs); ok {
   613  		return x.Certs
   614  	}
   615  	return nil
   616  }
   617  
   618  // XXX_OneofWrappers is for the internal use of the proto package.
   619  func (*RegisterUsingTPMMethodResponse) XXX_OneofWrappers() []interface{} {
   620  	return []interface{}{
   621  		(*RegisterUsingTPMMethodResponse_ChallengeRequest)(nil),
   622  		(*RegisterUsingTPMMethodResponse_Certs)(nil),
   623  	}
   624  }
   625  
   626  // The attestation key and the parameters necessary to remotely verify it as
   627  // related to the endorsement key.
   628  // See https://pkg.go.dev/github.com/google/go-attestation/attest#AttestationParameters.
   629  // This message excludes the `UseTCSDActivationFormat` field from the link above
   630  // as it is TMP 1.x specific and always false.
   631  type TPMAttestationParameters struct {
   632  	// The encoded TPMT_PUBLIC structure containing the attestation public key
   633  	// and signing parameters.
   634  	Public []byte `protobuf:"bytes,1,opt,name=public,proto3" json:"public,omitempty"`
   635  	// The properties of the attestation key, encoded as a TPMS_CREATION_DATA
   636  	// structure.
   637  	CreateData []byte `protobuf:"bytes,2,opt,name=create_data,json=createData,proto3" json:"create_data,omitempty"`
   638  	// An assertion as to the details of the key, encoded as a TPMS_ATTEST
   639  	// structure.
   640  	CreateAttestation []byte `protobuf:"bytes,3,opt,name=create_attestation,json=createAttestation,proto3" json:"create_attestation,omitempty"`
   641  	// A signature of create_attestation, encoded as a TPMT_SIGNATURE structure.
   642  	CreateSignature      []byte   `protobuf:"bytes,4,opt,name=create_signature,json=createSignature,proto3" json:"create_signature,omitempty"`
   643  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   644  	XXX_unrecognized     []byte   `json:"-"`
   645  	XXX_sizecache        int32    `json:"-"`
   646  }
   647  
   648  func (m *TPMAttestationParameters) Reset()         { *m = TPMAttestationParameters{} }
   649  func (m *TPMAttestationParameters) String() string { return proto.CompactTextString(m) }
   650  func (*TPMAttestationParameters) ProtoMessage()    {}
   651  func (*TPMAttestationParameters) Descriptor() ([]byte, []int) {
   652  	return fileDescriptor_d7e760ce923b836e, []int{8}
   653  }
   654  func (m *TPMAttestationParameters) XXX_Unmarshal(b []byte) error {
   655  	return m.Unmarshal(b)
   656  }
   657  func (m *TPMAttestationParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   658  	if deterministic {
   659  		return xxx_messageInfo_TPMAttestationParameters.Marshal(b, m, deterministic)
   660  	} else {
   661  		b = b[:cap(b)]
   662  		n, err := m.MarshalToSizedBuffer(b)
   663  		if err != nil {
   664  			return nil, err
   665  		}
   666  		return b[:n], nil
   667  	}
   668  }
   669  func (m *TPMAttestationParameters) XXX_Merge(src proto.Message) {
   670  	xxx_messageInfo_TPMAttestationParameters.Merge(m, src)
   671  }
   672  func (m *TPMAttestationParameters) XXX_Size() int {
   673  	return m.Size()
   674  }
   675  func (m *TPMAttestationParameters) XXX_DiscardUnknown() {
   676  	xxx_messageInfo_TPMAttestationParameters.DiscardUnknown(m)
   677  }
   678  
   679  var xxx_messageInfo_TPMAttestationParameters proto.InternalMessageInfo
   680  
   681  func (m *TPMAttestationParameters) GetPublic() []byte {
   682  	if m != nil {
   683  		return m.Public
   684  	}
   685  	return nil
   686  }
   687  
   688  func (m *TPMAttestationParameters) GetCreateData() []byte {
   689  	if m != nil {
   690  		return m.CreateData
   691  	}
   692  	return nil
   693  }
   694  
   695  func (m *TPMAttestationParameters) GetCreateAttestation() []byte {
   696  	if m != nil {
   697  		return m.CreateAttestation
   698  	}
   699  	return nil
   700  }
   701  
   702  func (m *TPMAttestationParameters) GetCreateSignature() []byte {
   703  	if m != nil {
   704  		return m.CreateSignature
   705  	}
   706  	return nil
   707  }
   708  
   709  // These values are used by the TPM2.0 `ActivateCredential` command to produce
   710  // the solution which proves possession of the EK and AK.
   711  //
   712  // For a more in-depth description see:
   713  // - https://pkg.go.dev/github.com/google/go-attestation/attest#EncryptedCredential
   714  // - https://trustedcomputinggroup.org/wp-content/uploads/TCG_TPM2_r1p59_Part3_Commands_code_pub.pdf (Heading 12.5.1 "TPM2_ActivateCredential" "General Description")
   715  // - https://github.com/google/go-attestation/blob/v0.4.3/attest/activation.go#L199
   716  // - https://github.com/google/go-tpm/blob/v0.3.3/tpm2/credactivation/credential_activation.go#L61
   717  type TPMEncryptedCredential struct {
   718  	// The `credential_blob` parameter to be used with the `ActivateCredential`
   719  	// command. This is used with the decrypted value of `secret` in a
   720  	// cryptographic process to decrypt the solution.
   721  	CredentialBlob []byte `protobuf:"bytes,1,opt,name=credential_blob,json=credentialBlob,proto3" json:"credential_blob,omitempty"`
   722  	// The `secret` parameter to be used with `ActivateCredential`. This is a
   723  	// seed which can be decrypted with the EK. The decrypted seed is then used
   724  	// when decrypting `credential_blob`.
   725  	Secret               []byte   `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
   726  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   727  	XXX_unrecognized     []byte   `json:"-"`
   728  	XXX_sizecache        int32    `json:"-"`
   729  }
   730  
   731  func (m *TPMEncryptedCredential) Reset()         { *m = TPMEncryptedCredential{} }
   732  func (m *TPMEncryptedCredential) String() string { return proto.CompactTextString(m) }
   733  func (*TPMEncryptedCredential) ProtoMessage()    {}
   734  func (*TPMEncryptedCredential) Descriptor() ([]byte, []int) {
   735  	return fileDescriptor_d7e760ce923b836e, []int{9}
   736  }
   737  func (m *TPMEncryptedCredential) XXX_Unmarshal(b []byte) error {
   738  	return m.Unmarshal(b)
   739  }
   740  func (m *TPMEncryptedCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   741  	if deterministic {
   742  		return xxx_messageInfo_TPMEncryptedCredential.Marshal(b, m, deterministic)
   743  	} else {
   744  		b = b[:cap(b)]
   745  		n, err := m.MarshalToSizedBuffer(b)
   746  		if err != nil {
   747  			return nil, err
   748  		}
   749  		return b[:n], nil
   750  	}
   751  }
   752  func (m *TPMEncryptedCredential) XXX_Merge(src proto.Message) {
   753  	xxx_messageInfo_TPMEncryptedCredential.Merge(m, src)
   754  }
   755  func (m *TPMEncryptedCredential) XXX_Size() int {
   756  	return m.Size()
   757  }
   758  func (m *TPMEncryptedCredential) XXX_DiscardUnknown() {
   759  	xxx_messageInfo_TPMEncryptedCredential.DiscardUnknown(m)
   760  }
   761  
   762  var xxx_messageInfo_TPMEncryptedCredential proto.InternalMessageInfo
   763  
   764  func (m *TPMEncryptedCredential) GetCredentialBlob() []byte {
   765  	if m != nil {
   766  		return m.CredentialBlob
   767  	}
   768  	return nil
   769  }
   770  
   771  func (m *TPMEncryptedCredential) GetSecret() []byte {
   772  	if m != nil {
   773  		return m.Secret
   774  	}
   775  	return nil
   776  }
   777  
   778  func init() {
   779  	proto.RegisterType((*RegisterUsingIAMMethodRequest)(nil), "proto.RegisterUsingIAMMethodRequest")
   780  	proto.RegisterType((*RegisterUsingIAMMethodResponse)(nil), "proto.RegisterUsingIAMMethodResponse")
   781  	proto.RegisterType((*RegisterUsingAzureMethodRequest)(nil), "proto.RegisterUsingAzureMethodRequest")
   782  	proto.RegisterType((*RegisterUsingAzureMethodResponse)(nil), "proto.RegisterUsingAzureMethodResponse")
   783  	proto.RegisterType((*RegisterUsingTPMMethodChallengeResponse)(nil), "proto.RegisterUsingTPMMethodChallengeResponse")
   784  	proto.RegisterType((*RegisterUsingTPMMethodInitialRequest)(nil), "proto.RegisterUsingTPMMethodInitialRequest")
   785  	proto.RegisterType((*RegisterUsingTPMMethodRequest)(nil), "proto.RegisterUsingTPMMethodRequest")
   786  	proto.RegisterType((*RegisterUsingTPMMethodResponse)(nil), "proto.RegisterUsingTPMMethodResponse")
   787  	proto.RegisterType((*TPMAttestationParameters)(nil), "proto.TPMAttestationParameters")
   788  	proto.RegisterType((*TPMEncryptedCredential)(nil), "proto.TPMEncryptedCredential")
   789  }
   790  
   791  func init() {
   792  	proto.RegisterFile("teleport/legacy/client/proto/joinservice.proto", fileDescriptor_d7e760ce923b836e)
   793  }
   794  
   795  var fileDescriptor_d7e760ce923b836e = []byte{
   796  	// 783 bytes of a gzipped FileDescriptorProto
   797  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xc1, 0x6e, 0xdb, 0x46,
   798  	0x10, 0x15, 0x5d, 0x5b, 0xae, 0x47, 0x6a, 0x6b, 0x2d, 0x0a, 0x57, 0x16, 0x6c, 0x59, 0x66, 0xdd,
   799  	0x5a, 0x45, 0x51, 0xc9, 0x50, 0x7f, 0xa0, 0x92, 0x6a, 0x40, 0x6e, 0xe3, 0xc0, 0xa0, 0x9d, 0x43,
   800  	0x72, 0x21, 0x56, 0xd4, 0x40, 0xde, 0x88, 0x26, 0x99, 0xdd, 0x95, 0x01, 0xe5, 0x67, 0xf2, 0x05,
   801  	0xb9, 0xe5, 0x23, 0x72, 0x08, 0x82, 0x1c, 0xf2, 0x01, 0x81, 0xff, 0x21, 0xf7, 0x80, 0xbb, 0x4b,
   802  	0x89, 0xa2, 0x25, 0x3b, 0x01, 0x82, 0x5c, 0x48, 0xec, 0xcc, 0xdb, 0x99, 0x79, 0x6f, 0x66, 0x77,
   803  	0xa1, 0x21, 0xd1, 0xc7, 0x28, 0xe4, 0xb2, 0xe9, 0xe3, 0x90, 0x7a, 0x93, 0xa6, 0xe7, 0x33, 0x0c,
   804  	0x64, 0x33, 0xe2, 0xa1, 0x0c, 0x9b, 0x4f, 0x43, 0x16, 0x08, 0xe4, 0xd7, 0xcc, 0xc3, 0x86, 0xb2,
   805  	0x90, 0x35, 0xf5, 0xab, 0xd4, 0xef, 0xdc, 0xe6, 0x21, 0x97, 0x42, 0x6f, 0xa8, 0xec, 0x67, 0x91,
   806  	0x72, 0x12, 0xa1, 0xd0, 0x5f, 0x0d, 0xb1, 0x5f, 0x59, 0xb0, 0xeb, 0xe0, 0x90, 0x09, 0x89, 0xfc,
   807  	0x91, 0x60, 0xc1, 0xf0, 0xa4, 0x7d, 0x7a, 0x8a, 0xf2, 0x32, 0x1c, 0x38, 0xf8, 0x6c, 0x8c, 0x42,
   808  	0x12, 0x0a, 0x3b, 0xdc, 0x00, 0xdc, 0x71, 0x8c, 0x70, 0x65, 0x38, 0xc2, 0xc0, 0xe5, 0xda, 0x5f,
   809  	0xb6, 0x6a, 0x56, 0xbd, 0xd0, 0xaa, 0x35, 0x74, 0xd4, 0xb9, 0x58, 0x17, 0x31, 0xd0, 0xc4, 0x71,
   810  	0xb6, 0xf9, 0x32, 0x17, 0x39, 0x82, 0x9f, 0x85, 0x14, 0x2e, 0x1b, 0x60, 0x20, 0x99, 0x9c, 0x4c,
   811  	0x43, 0xaf, 0xd4, 0xac, 0x7a, 0xd1, 0x21, 0x42, 0x8a, 0x13, 0xe3, 0x32, 0x3b, 0xec, 0x3e, 0x54,
   812  	0x97, 0x55, 0x2d, 0xa2, 0x30, 0x10, 0x48, 0x76, 0x60, 0xc3, 0xbb, 0xa4, 0xbe, 0x8f, 0xc1, 0x10,
   813  	0x55, 0x8d, 0x1b, 0xce, 0xcc, 0x40, 0x6c, 0x58, 0x53, 0x42, 0xa9, 0x14, 0x85, 0x56, 0x51, 0xab,
   814  	0xd1, 0xe8, 0xc6, 0x36, 0x47, 0xbb, 0xec, 0x37, 0x16, 0xec, 0xcd, 0x25, 0x69, 0x3f, 0x1f, 0x73,
   815  	0xfc, 0xe6, 0xe2, 0xfc, 0x0a, 0x3f, 0x50, 0x29, 0x51, 0x48, 0x1c, 0xb8, 0x03, 0x2a, 0xa9, 0x51,
   816  	0xa5, 0x98, 0x18, 0xff, 0xa5, 0x92, 0x92, 0x7d, 0x28, 0x52, 0xcf, 0x43, 0x21, 0x74, 0xfe, 0xf2,
   817  	0x77, 0x8a, 0x70, 0x41, 0xdb, 0x54, 0x38, 0x7b, 0x00, 0xb5, 0xe5, 0x6c, 0xbe, 0x9a, 0x68, 0xc7,
   818  	0x70, 0x38, 0xcf, 0xf2, 0xcc, 0x34, 0xa6, 0x9b, 0x84, 0x99, 0x26, 0xab, 0xc0, 0xf7, 0x22, 0xf4,
   819  	0xc7, 0x92, 0x85, 0x81, 0xca, 0x55, 0x74, 0xa6, 0x6b, 0xfb, 0xa3, 0x05, 0x07, 0x8b, 0xe3, 0x9c,
   820  	0x04, 0x4c, 0x32, 0xea, 0x27, 0xea, 0x74, 0xa1, 0x18, 0x1f, 0x94, 0x2f, 0x16, 0xbc, 0x10, 0xef,
   821  	0x4a, 0x82, 0x6c, 0xc3, 0x3a, 0x8e, 0xdc, 0x98, 0x80, 0x16, 0xb7, 0x97, 0x73, 0xf2, 0x38, 0x8a,
   822  	0x79, 0x91, 0x5f, 0x20, 0x8f, 0x23, 0x77, 0x84, 0x13, 0x25, 0x69, 0xec, 0x59, 0xc3, 0xd1, 0xff,
   823  	0x38, 0x21, 0x0f, 0x81, 0xe8, 0x0e, 0xd0, 0xb8, 0x60, 0x37, 0xa2, 0x9c, 0x5e, 0x89, 0xf2, 0xaa,
   824  	0x4a, 0xbf, 0x67, 0x94, 0xb9, 0x38, 0x3b, 0x6d, 0xcf, 0x30, 0x67, 0x31, 0x04, 0x25, 0x72, 0xe1,
   825  	0x94, 0x68, 0xc6, 0x2c, 0x3a, 0xab, 0xb0, 0x82, 0x23, 0xfb, 0x6d, 0xf6, 0x38, 0x4e, 0x79, 0x27,
   826  	0xb5, 0xb6, 0x61, 0x95, 0x05, 0x2c, 0x21, 0xfa, 0xa7, 0xc9, 0xf4, 0x39, 0x5a, 0xf5, 0x72, 0x8e,
   827  	0xda, 0x4a, 0x5c, 0x20, 0xd3, 0xa6, 0xba, 0xdc, 0xb4, 0xc3, 0x34, 0xb5, 0x71, 0x67, 0xc0, 0x5b,
   828  	0x4d, 0xec, 0xe5, 0x9c, 0x92, 0x97, 0x35, 0x76, 0x36, 0x60, 0x3d, 0xa2, 0x13, 0x3f, 0xa4, 0x03,
   829  	0xfb, 0x85, 0x95, 0x39, 0xa9, 0x29, 0x42, 0x66, 0x0e, 0x1e, 0x40, 0x29, 0x5d, 0x4e, 0xba, 0x8f,
   830  	0xbb, 0x33, 0x21, 0x8f, 0x03, 0x8f, 0x4f, 0x22, 0x89, 0x83, 0x2e, 0x47, 0x75, 0x19, 0x50, 0xbf,
   831  	0x97, 0x73, 0x36, 0x53, 0xc9, 0xb5, 0x3e, 0x07, 0x77, 0x0c, 0x69, 0xdc, 0x3d, 0xe5, 0x4c, 0x57,
   832  	0xf8, 0xd2, 0x82, 0xf2, 0xb2, 0x46, 0x91, 0x2d, 0xc8, 0x47, 0xe3, 0xbe, 0xcf, 0x3c, 0x33, 0xa1,
   833  	0x66, 0x45, 0xf6, 0xa0, 0xe0, 0x71, 0xa4, 0x12, 0xd3, 0x47, 0x12, 0xb4, 0x49, 0x1d, 0xc8, 0xbf,
   834  	0x80, 0x18, 0x40, 0xaa, 0xd5, 0x7a, 0x86, 0x9c, 0x92, 0xf6, 0xa4, 0x32, 0x92, 0x3f, 0x60, 0xd3,
   835  	0xc0, 0x05, 0x1b, 0x06, 0x54, 0x8e, 0x39, 0xaa, 0x59, 0x2a, 0x3a, 0x3f, 0x69, 0xfb, 0x79, 0x62,
   836  	0xb6, 0x1f, 0xc3, 0xd6, 0x62, 0x39, 0xc8, 0x21, 0xc4, 0x60, 0xb3, 0x72, 0xfb, 0x7e, 0xd8, 0x37,
   837  	0x55, 0xff, 0x38, 0x33, 0x77, 0xfc, 0xb0, 0x1f, 0xb3, 0x12, 0xe8, 0x71, 0x4c, 0x6e, 0x58, 0xb3,
   838  	0x6a, 0xbd, 0x5f, 0x81, 0xc2, 0x7f, 0x21, 0x0b, 0xce, 0xf5, 0xb3, 0x43, 0x18, 0x6c, 0x2d, 0xbe,
   839  	0x65, 0xc9, 0xc1, 0xa2, 0x31, 0xc9, 0x3e, 0x1d, 0x95, 0xdf, 0xee, 0x41, 0xe9, 0x01, 0xa8, 0x5b,
   840  	0x47, 0x16, 0x09, 0xa1, 0xbc, 0xec, 0x76, 0x22, 0xbf, 0x2f, 0x0a, 0x73, 0xfb, 0x32, 0xae, 0x1c,
   841  	0xde, 0x8b, 0x4b, 0x25, 0xcc, 0x72, 0x9b, 0xce, 0xe5, 0x62, 0x6e, 0xd9, 0x73, 0xb8, 0x98, 0xdb,
   842  	0xad, 0xe1, 0x8e, 0x53, 0x75, 0xfe, 0x79, 0x7d, 0x53, 0xb5, 0xde, 0xdd, 0x54, 0xad, 0x0f, 0x37,
   843  	0x55, 0xeb, 0x49, 0x6b, 0xc8, 0xe4, 0xe5, 0xb8, 0xdf, 0xf0, 0xc2, 0xab, 0xe6, 0x90, 0xd3, 0x6b,
   844  	0xa6, 0x47, 0x80, 0xfa, 0xcd, 0xe9, 0x6b, 0x4d, 0x23, 0x36, 0xf7, 0xa8, 0xf7, 0xf3, 0xea, 0xf7,
   845  	0xf7, 0xa7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x5a, 0x2e, 0x2f, 0x32, 0x08, 0x00, 0x00,
   846  }
   847  
   848  // Reference imports to suppress errors if they are not otherwise used.
   849  var _ context.Context
   850  var _ grpc.ClientConn
   851  
   852  // This is a compile-time assertion to ensure that this generated file
   853  // is compatible with the grpc package it is being compiled against.
   854  const _ = grpc.SupportPackageIsVersion4
   855  
   856  // JoinServiceClient is the client API for JoinService service.
   857  //
   858  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   859  type JoinServiceClient interface {
   860  	// RegisterUsingIAMMethod is used to register a new node to the cluster using
   861  	// the IAM join method.
   862  	RegisterUsingIAMMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingIAMMethodClient, error)
   863  	// RegisterUsingAzureMethod is used to register a new node to the cluster
   864  	// using the Azure join method.
   865  	RegisterUsingAzureMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingAzureMethodClient, error)
   866  	// RegisterUsingTPMMethod allows registration of a new agent or Bot to the
   867  	// cluster using a known TPM.
   868  	RegisterUsingTPMMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingTPMMethodClient, error)
   869  }
   870  
   871  type joinServiceClient struct {
   872  	cc *grpc.ClientConn
   873  }
   874  
   875  func NewJoinServiceClient(cc *grpc.ClientConn) JoinServiceClient {
   876  	return &joinServiceClient{cc}
   877  }
   878  
   879  func (c *joinServiceClient) RegisterUsingIAMMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingIAMMethodClient, error) {
   880  	stream, err := c.cc.NewStream(ctx, &_JoinService_serviceDesc.Streams[0], "/proto.JoinService/RegisterUsingIAMMethod", opts...)
   881  	if err != nil {
   882  		return nil, err
   883  	}
   884  	x := &joinServiceRegisterUsingIAMMethodClient{stream}
   885  	return x, nil
   886  }
   887  
   888  type JoinService_RegisterUsingIAMMethodClient interface {
   889  	Send(*RegisterUsingIAMMethodRequest) error
   890  	Recv() (*RegisterUsingIAMMethodResponse, error)
   891  	grpc.ClientStream
   892  }
   893  
   894  type joinServiceRegisterUsingIAMMethodClient struct {
   895  	grpc.ClientStream
   896  }
   897  
   898  func (x *joinServiceRegisterUsingIAMMethodClient) Send(m *RegisterUsingIAMMethodRequest) error {
   899  	return x.ClientStream.SendMsg(m)
   900  }
   901  
   902  func (x *joinServiceRegisterUsingIAMMethodClient) Recv() (*RegisterUsingIAMMethodResponse, error) {
   903  	m := new(RegisterUsingIAMMethodResponse)
   904  	if err := x.ClientStream.RecvMsg(m); err != nil {
   905  		return nil, err
   906  	}
   907  	return m, nil
   908  }
   909  
   910  func (c *joinServiceClient) RegisterUsingAzureMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingAzureMethodClient, error) {
   911  	stream, err := c.cc.NewStream(ctx, &_JoinService_serviceDesc.Streams[1], "/proto.JoinService/RegisterUsingAzureMethod", opts...)
   912  	if err != nil {
   913  		return nil, err
   914  	}
   915  	x := &joinServiceRegisterUsingAzureMethodClient{stream}
   916  	return x, nil
   917  }
   918  
   919  type JoinService_RegisterUsingAzureMethodClient interface {
   920  	Send(*RegisterUsingAzureMethodRequest) error
   921  	Recv() (*RegisterUsingAzureMethodResponse, error)
   922  	grpc.ClientStream
   923  }
   924  
   925  type joinServiceRegisterUsingAzureMethodClient struct {
   926  	grpc.ClientStream
   927  }
   928  
   929  func (x *joinServiceRegisterUsingAzureMethodClient) Send(m *RegisterUsingAzureMethodRequest) error {
   930  	return x.ClientStream.SendMsg(m)
   931  }
   932  
   933  func (x *joinServiceRegisterUsingAzureMethodClient) Recv() (*RegisterUsingAzureMethodResponse, error) {
   934  	m := new(RegisterUsingAzureMethodResponse)
   935  	if err := x.ClientStream.RecvMsg(m); err != nil {
   936  		return nil, err
   937  	}
   938  	return m, nil
   939  }
   940  
   941  func (c *joinServiceClient) RegisterUsingTPMMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingTPMMethodClient, error) {
   942  	stream, err := c.cc.NewStream(ctx, &_JoinService_serviceDesc.Streams[2], "/proto.JoinService/RegisterUsingTPMMethod", opts...)
   943  	if err != nil {
   944  		return nil, err
   945  	}
   946  	x := &joinServiceRegisterUsingTPMMethodClient{stream}
   947  	return x, nil
   948  }
   949  
   950  type JoinService_RegisterUsingTPMMethodClient interface {
   951  	Send(*RegisterUsingTPMMethodRequest) error
   952  	Recv() (*RegisterUsingTPMMethodResponse, error)
   953  	grpc.ClientStream
   954  }
   955  
   956  type joinServiceRegisterUsingTPMMethodClient struct {
   957  	grpc.ClientStream
   958  }
   959  
   960  func (x *joinServiceRegisterUsingTPMMethodClient) Send(m *RegisterUsingTPMMethodRequest) error {
   961  	return x.ClientStream.SendMsg(m)
   962  }
   963  
   964  func (x *joinServiceRegisterUsingTPMMethodClient) Recv() (*RegisterUsingTPMMethodResponse, error) {
   965  	m := new(RegisterUsingTPMMethodResponse)
   966  	if err := x.ClientStream.RecvMsg(m); err != nil {
   967  		return nil, err
   968  	}
   969  	return m, nil
   970  }
   971  
   972  // JoinServiceServer is the server API for JoinService service.
   973  type JoinServiceServer interface {
   974  	// RegisterUsingIAMMethod is used to register a new node to the cluster using
   975  	// the IAM join method.
   976  	RegisterUsingIAMMethod(JoinService_RegisterUsingIAMMethodServer) error
   977  	// RegisterUsingAzureMethod is used to register a new node to the cluster
   978  	// using the Azure join method.
   979  	RegisterUsingAzureMethod(JoinService_RegisterUsingAzureMethodServer) error
   980  	// RegisterUsingTPMMethod allows registration of a new agent or Bot to the
   981  	// cluster using a known TPM.
   982  	RegisterUsingTPMMethod(JoinService_RegisterUsingTPMMethodServer) error
   983  }
   984  
   985  // UnimplementedJoinServiceServer can be embedded to have forward compatible implementations.
   986  type UnimplementedJoinServiceServer struct {
   987  }
   988  
   989  func (*UnimplementedJoinServiceServer) RegisterUsingIAMMethod(srv JoinService_RegisterUsingIAMMethodServer) error {
   990  	return status.Errorf(codes.Unimplemented, "method RegisterUsingIAMMethod not implemented")
   991  }
   992  func (*UnimplementedJoinServiceServer) RegisterUsingAzureMethod(srv JoinService_RegisterUsingAzureMethodServer) error {
   993  	return status.Errorf(codes.Unimplemented, "method RegisterUsingAzureMethod not implemented")
   994  }
   995  func (*UnimplementedJoinServiceServer) RegisterUsingTPMMethod(srv JoinService_RegisterUsingTPMMethodServer) error {
   996  	return status.Errorf(codes.Unimplemented, "method RegisterUsingTPMMethod not implemented")
   997  }
   998  
   999  func RegisterJoinServiceServer(s *grpc.Server, srv JoinServiceServer) {
  1000  	s.RegisterService(&_JoinService_serviceDesc, srv)
  1001  }
  1002  
  1003  func _JoinService_RegisterUsingIAMMethod_Handler(srv interface{}, stream grpc.ServerStream) error {
  1004  	return srv.(JoinServiceServer).RegisterUsingIAMMethod(&joinServiceRegisterUsingIAMMethodServer{stream})
  1005  }
  1006  
  1007  type JoinService_RegisterUsingIAMMethodServer interface {
  1008  	Send(*RegisterUsingIAMMethodResponse) error
  1009  	Recv() (*RegisterUsingIAMMethodRequest, error)
  1010  	grpc.ServerStream
  1011  }
  1012  
  1013  type joinServiceRegisterUsingIAMMethodServer struct {
  1014  	grpc.ServerStream
  1015  }
  1016  
  1017  func (x *joinServiceRegisterUsingIAMMethodServer) Send(m *RegisterUsingIAMMethodResponse) error {
  1018  	return x.ServerStream.SendMsg(m)
  1019  }
  1020  
  1021  func (x *joinServiceRegisterUsingIAMMethodServer) Recv() (*RegisterUsingIAMMethodRequest, error) {
  1022  	m := new(RegisterUsingIAMMethodRequest)
  1023  	if err := x.ServerStream.RecvMsg(m); err != nil {
  1024  		return nil, err
  1025  	}
  1026  	return m, nil
  1027  }
  1028  
  1029  func _JoinService_RegisterUsingAzureMethod_Handler(srv interface{}, stream grpc.ServerStream) error {
  1030  	return srv.(JoinServiceServer).RegisterUsingAzureMethod(&joinServiceRegisterUsingAzureMethodServer{stream})
  1031  }
  1032  
  1033  type JoinService_RegisterUsingAzureMethodServer interface {
  1034  	Send(*RegisterUsingAzureMethodResponse) error
  1035  	Recv() (*RegisterUsingAzureMethodRequest, error)
  1036  	grpc.ServerStream
  1037  }
  1038  
  1039  type joinServiceRegisterUsingAzureMethodServer struct {
  1040  	grpc.ServerStream
  1041  }
  1042  
  1043  func (x *joinServiceRegisterUsingAzureMethodServer) Send(m *RegisterUsingAzureMethodResponse) error {
  1044  	return x.ServerStream.SendMsg(m)
  1045  }
  1046  
  1047  func (x *joinServiceRegisterUsingAzureMethodServer) Recv() (*RegisterUsingAzureMethodRequest, error) {
  1048  	m := new(RegisterUsingAzureMethodRequest)
  1049  	if err := x.ServerStream.RecvMsg(m); err != nil {
  1050  		return nil, err
  1051  	}
  1052  	return m, nil
  1053  }
  1054  
  1055  func _JoinService_RegisterUsingTPMMethod_Handler(srv interface{}, stream grpc.ServerStream) error {
  1056  	return srv.(JoinServiceServer).RegisterUsingTPMMethod(&joinServiceRegisterUsingTPMMethodServer{stream})
  1057  }
  1058  
  1059  type JoinService_RegisterUsingTPMMethodServer interface {
  1060  	Send(*RegisterUsingTPMMethodResponse) error
  1061  	Recv() (*RegisterUsingTPMMethodRequest, error)
  1062  	grpc.ServerStream
  1063  }
  1064  
  1065  type joinServiceRegisterUsingTPMMethodServer struct {
  1066  	grpc.ServerStream
  1067  }
  1068  
  1069  func (x *joinServiceRegisterUsingTPMMethodServer) Send(m *RegisterUsingTPMMethodResponse) error {
  1070  	return x.ServerStream.SendMsg(m)
  1071  }
  1072  
  1073  func (x *joinServiceRegisterUsingTPMMethodServer) Recv() (*RegisterUsingTPMMethodRequest, error) {
  1074  	m := new(RegisterUsingTPMMethodRequest)
  1075  	if err := x.ServerStream.RecvMsg(m); err != nil {
  1076  		return nil, err
  1077  	}
  1078  	return m, nil
  1079  }
  1080  
  1081  var _JoinService_serviceDesc = grpc.ServiceDesc{
  1082  	ServiceName: "proto.JoinService",
  1083  	HandlerType: (*JoinServiceServer)(nil),
  1084  	Methods:     []grpc.MethodDesc{},
  1085  	Streams: []grpc.StreamDesc{
  1086  		{
  1087  			StreamName:    "RegisterUsingIAMMethod",
  1088  			Handler:       _JoinService_RegisterUsingIAMMethod_Handler,
  1089  			ServerStreams: true,
  1090  			ClientStreams: true,
  1091  		},
  1092  		{
  1093  			StreamName:    "RegisterUsingAzureMethod",
  1094  			Handler:       _JoinService_RegisterUsingAzureMethod_Handler,
  1095  			ServerStreams: true,
  1096  			ClientStreams: true,
  1097  		},
  1098  		{
  1099  			StreamName:    "RegisterUsingTPMMethod",
  1100  			Handler:       _JoinService_RegisterUsingTPMMethod_Handler,
  1101  			ServerStreams: true,
  1102  			ClientStreams: true,
  1103  		},
  1104  	},
  1105  	Metadata: "teleport/legacy/client/proto/joinservice.proto",
  1106  }
  1107  
  1108  func (m *RegisterUsingIAMMethodRequest) Marshal() (dAtA []byte, err error) {
  1109  	size := m.Size()
  1110  	dAtA = make([]byte, size)
  1111  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1112  	if err != nil {
  1113  		return nil, err
  1114  	}
  1115  	return dAtA[:n], nil
  1116  }
  1117  
  1118  func (m *RegisterUsingIAMMethodRequest) MarshalTo(dAtA []byte) (int, error) {
  1119  	size := m.Size()
  1120  	return m.MarshalToSizedBuffer(dAtA[:size])
  1121  }
  1122  
  1123  func (m *RegisterUsingIAMMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1124  	i := len(dAtA)
  1125  	_ = i
  1126  	var l int
  1127  	_ = l
  1128  	if m.XXX_unrecognized != nil {
  1129  		i -= len(m.XXX_unrecognized)
  1130  		copy(dAtA[i:], m.XXX_unrecognized)
  1131  	}
  1132  	if len(m.StsIdentityRequest) > 0 {
  1133  		i -= len(m.StsIdentityRequest)
  1134  		copy(dAtA[i:], m.StsIdentityRequest)
  1135  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.StsIdentityRequest)))
  1136  		i--
  1137  		dAtA[i] = 0x12
  1138  	}
  1139  	if m.RegisterUsingTokenRequest != nil {
  1140  		{
  1141  			size, err := m.RegisterUsingTokenRequest.MarshalToSizedBuffer(dAtA[:i])
  1142  			if err != nil {
  1143  				return 0, err
  1144  			}
  1145  			i -= size
  1146  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1147  		}
  1148  		i--
  1149  		dAtA[i] = 0xa
  1150  	}
  1151  	return len(dAtA) - i, nil
  1152  }
  1153  
  1154  func (m *RegisterUsingIAMMethodResponse) Marshal() (dAtA []byte, err error) {
  1155  	size := m.Size()
  1156  	dAtA = make([]byte, size)
  1157  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1158  	if err != nil {
  1159  		return nil, err
  1160  	}
  1161  	return dAtA[:n], nil
  1162  }
  1163  
  1164  func (m *RegisterUsingIAMMethodResponse) MarshalTo(dAtA []byte) (int, error) {
  1165  	size := m.Size()
  1166  	return m.MarshalToSizedBuffer(dAtA[:size])
  1167  }
  1168  
  1169  func (m *RegisterUsingIAMMethodResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1170  	i := len(dAtA)
  1171  	_ = i
  1172  	var l int
  1173  	_ = l
  1174  	if m.XXX_unrecognized != nil {
  1175  		i -= len(m.XXX_unrecognized)
  1176  		copy(dAtA[i:], m.XXX_unrecognized)
  1177  	}
  1178  	if m.Certs != nil {
  1179  		{
  1180  			size, err := m.Certs.MarshalToSizedBuffer(dAtA[:i])
  1181  			if err != nil {
  1182  				return 0, err
  1183  			}
  1184  			i -= size
  1185  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1186  		}
  1187  		i--
  1188  		dAtA[i] = 0x12
  1189  	}
  1190  	if len(m.Challenge) > 0 {
  1191  		i -= len(m.Challenge)
  1192  		copy(dAtA[i:], m.Challenge)
  1193  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.Challenge)))
  1194  		i--
  1195  		dAtA[i] = 0xa
  1196  	}
  1197  	return len(dAtA) - i, nil
  1198  }
  1199  
  1200  func (m *RegisterUsingAzureMethodRequest) Marshal() (dAtA []byte, err error) {
  1201  	size := m.Size()
  1202  	dAtA = make([]byte, size)
  1203  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1204  	if err != nil {
  1205  		return nil, err
  1206  	}
  1207  	return dAtA[:n], nil
  1208  }
  1209  
  1210  func (m *RegisterUsingAzureMethodRequest) MarshalTo(dAtA []byte) (int, error) {
  1211  	size := m.Size()
  1212  	return m.MarshalToSizedBuffer(dAtA[:size])
  1213  }
  1214  
  1215  func (m *RegisterUsingAzureMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1216  	i := len(dAtA)
  1217  	_ = i
  1218  	var l int
  1219  	_ = l
  1220  	if m.XXX_unrecognized != nil {
  1221  		i -= len(m.XXX_unrecognized)
  1222  		copy(dAtA[i:], m.XXX_unrecognized)
  1223  	}
  1224  	if len(m.AccessToken) > 0 {
  1225  		i -= len(m.AccessToken)
  1226  		copy(dAtA[i:], m.AccessToken)
  1227  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.AccessToken)))
  1228  		i--
  1229  		dAtA[i] = 0x1a
  1230  	}
  1231  	if len(m.AttestedData) > 0 {
  1232  		i -= len(m.AttestedData)
  1233  		copy(dAtA[i:], m.AttestedData)
  1234  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.AttestedData)))
  1235  		i--
  1236  		dAtA[i] = 0x12
  1237  	}
  1238  	if m.RegisterUsingTokenRequest != nil {
  1239  		{
  1240  			size, err := m.RegisterUsingTokenRequest.MarshalToSizedBuffer(dAtA[:i])
  1241  			if err != nil {
  1242  				return 0, err
  1243  			}
  1244  			i -= size
  1245  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1246  		}
  1247  		i--
  1248  		dAtA[i] = 0xa
  1249  	}
  1250  	return len(dAtA) - i, nil
  1251  }
  1252  
  1253  func (m *RegisterUsingAzureMethodResponse) Marshal() (dAtA []byte, err error) {
  1254  	size := m.Size()
  1255  	dAtA = make([]byte, size)
  1256  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1257  	if err != nil {
  1258  		return nil, err
  1259  	}
  1260  	return dAtA[:n], nil
  1261  }
  1262  
  1263  func (m *RegisterUsingAzureMethodResponse) MarshalTo(dAtA []byte) (int, error) {
  1264  	size := m.Size()
  1265  	return m.MarshalToSizedBuffer(dAtA[:size])
  1266  }
  1267  
  1268  func (m *RegisterUsingAzureMethodResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1269  	i := len(dAtA)
  1270  	_ = i
  1271  	var l int
  1272  	_ = l
  1273  	if m.XXX_unrecognized != nil {
  1274  		i -= len(m.XXX_unrecognized)
  1275  		copy(dAtA[i:], m.XXX_unrecognized)
  1276  	}
  1277  	if m.Certs != nil {
  1278  		{
  1279  			size, err := m.Certs.MarshalToSizedBuffer(dAtA[:i])
  1280  			if err != nil {
  1281  				return 0, err
  1282  			}
  1283  			i -= size
  1284  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1285  		}
  1286  		i--
  1287  		dAtA[i] = 0x12
  1288  	}
  1289  	if len(m.Challenge) > 0 {
  1290  		i -= len(m.Challenge)
  1291  		copy(dAtA[i:], m.Challenge)
  1292  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.Challenge)))
  1293  		i--
  1294  		dAtA[i] = 0xa
  1295  	}
  1296  	return len(dAtA) - i, nil
  1297  }
  1298  
  1299  func (m *RegisterUsingTPMMethodChallengeResponse) Marshal() (dAtA []byte, err error) {
  1300  	size := m.Size()
  1301  	dAtA = make([]byte, size)
  1302  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1303  	if err != nil {
  1304  		return nil, err
  1305  	}
  1306  	return dAtA[:n], nil
  1307  }
  1308  
  1309  func (m *RegisterUsingTPMMethodChallengeResponse) MarshalTo(dAtA []byte) (int, error) {
  1310  	size := m.Size()
  1311  	return m.MarshalToSizedBuffer(dAtA[:size])
  1312  }
  1313  
  1314  func (m *RegisterUsingTPMMethodChallengeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1315  	i := len(dAtA)
  1316  	_ = i
  1317  	var l int
  1318  	_ = l
  1319  	if m.XXX_unrecognized != nil {
  1320  		i -= len(m.XXX_unrecognized)
  1321  		copy(dAtA[i:], m.XXX_unrecognized)
  1322  	}
  1323  	if len(m.Solution) > 0 {
  1324  		i -= len(m.Solution)
  1325  		copy(dAtA[i:], m.Solution)
  1326  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.Solution)))
  1327  		i--
  1328  		dAtA[i] = 0xa
  1329  	}
  1330  	return len(dAtA) - i, nil
  1331  }
  1332  
  1333  func (m *RegisterUsingTPMMethodInitialRequest) Marshal() (dAtA []byte, err error) {
  1334  	size := m.Size()
  1335  	dAtA = make([]byte, size)
  1336  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1337  	if err != nil {
  1338  		return nil, err
  1339  	}
  1340  	return dAtA[:n], nil
  1341  }
  1342  
  1343  func (m *RegisterUsingTPMMethodInitialRequest) MarshalTo(dAtA []byte) (int, error) {
  1344  	size := m.Size()
  1345  	return m.MarshalToSizedBuffer(dAtA[:size])
  1346  }
  1347  
  1348  func (m *RegisterUsingTPMMethodInitialRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1349  	i := len(dAtA)
  1350  	_ = i
  1351  	var l int
  1352  	_ = l
  1353  	if m.XXX_unrecognized != nil {
  1354  		i -= len(m.XXX_unrecognized)
  1355  		copy(dAtA[i:], m.XXX_unrecognized)
  1356  	}
  1357  	if m.AttestationParams != nil {
  1358  		{
  1359  			size, err := m.AttestationParams.MarshalToSizedBuffer(dAtA[:i])
  1360  			if err != nil {
  1361  				return 0, err
  1362  			}
  1363  			i -= size
  1364  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1365  		}
  1366  		i--
  1367  		dAtA[i] = 0x22
  1368  	}
  1369  	if m.Ek != nil {
  1370  		{
  1371  			size := m.Ek.Size()
  1372  			i -= size
  1373  			if _, err := m.Ek.MarshalTo(dAtA[i:]); err != nil {
  1374  				return 0, err
  1375  			}
  1376  		}
  1377  	}
  1378  	if m.JoinRequest != nil {
  1379  		{
  1380  			size, err := m.JoinRequest.MarshalToSizedBuffer(dAtA[:i])
  1381  			if err != nil {
  1382  				return 0, err
  1383  			}
  1384  			i -= size
  1385  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1386  		}
  1387  		i--
  1388  		dAtA[i] = 0xa
  1389  	}
  1390  	return len(dAtA) - i, nil
  1391  }
  1392  
  1393  func (m *RegisterUsingTPMMethodInitialRequest_EkCert) MarshalTo(dAtA []byte) (int, error) {
  1394  	size := m.Size()
  1395  	return m.MarshalToSizedBuffer(dAtA[:size])
  1396  }
  1397  
  1398  func (m *RegisterUsingTPMMethodInitialRequest_EkCert) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1399  	i := len(dAtA)
  1400  	if m.EkCert != nil {
  1401  		i -= len(m.EkCert)
  1402  		copy(dAtA[i:], m.EkCert)
  1403  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.EkCert)))
  1404  		i--
  1405  		dAtA[i] = 0x12
  1406  	}
  1407  	return len(dAtA) - i, nil
  1408  }
  1409  func (m *RegisterUsingTPMMethodInitialRequest_EkKey) MarshalTo(dAtA []byte) (int, error) {
  1410  	size := m.Size()
  1411  	return m.MarshalToSizedBuffer(dAtA[:size])
  1412  }
  1413  
  1414  func (m *RegisterUsingTPMMethodInitialRequest_EkKey) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1415  	i := len(dAtA)
  1416  	if m.EkKey != nil {
  1417  		i -= len(m.EkKey)
  1418  		copy(dAtA[i:], m.EkKey)
  1419  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.EkKey)))
  1420  		i--
  1421  		dAtA[i] = 0x1a
  1422  	}
  1423  	return len(dAtA) - i, nil
  1424  }
  1425  func (m *RegisterUsingTPMMethodRequest) Marshal() (dAtA []byte, err error) {
  1426  	size := m.Size()
  1427  	dAtA = make([]byte, size)
  1428  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1429  	if err != nil {
  1430  		return nil, err
  1431  	}
  1432  	return dAtA[:n], nil
  1433  }
  1434  
  1435  func (m *RegisterUsingTPMMethodRequest) MarshalTo(dAtA []byte) (int, error) {
  1436  	size := m.Size()
  1437  	return m.MarshalToSizedBuffer(dAtA[:size])
  1438  }
  1439  
  1440  func (m *RegisterUsingTPMMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1441  	i := len(dAtA)
  1442  	_ = i
  1443  	var l int
  1444  	_ = l
  1445  	if m.XXX_unrecognized != nil {
  1446  		i -= len(m.XXX_unrecognized)
  1447  		copy(dAtA[i:], m.XXX_unrecognized)
  1448  	}
  1449  	if m.Payload != nil {
  1450  		{
  1451  			size := m.Payload.Size()
  1452  			i -= size
  1453  			if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil {
  1454  				return 0, err
  1455  			}
  1456  		}
  1457  	}
  1458  	return len(dAtA) - i, nil
  1459  }
  1460  
  1461  func (m *RegisterUsingTPMMethodRequest_Init) MarshalTo(dAtA []byte) (int, error) {
  1462  	size := m.Size()
  1463  	return m.MarshalToSizedBuffer(dAtA[:size])
  1464  }
  1465  
  1466  func (m *RegisterUsingTPMMethodRequest_Init) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1467  	i := len(dAtA)
  1468  	if m.Init != nil {
  1469  		{
  1470  			size, err := m.Init.MarshalToSizedBuffer(dAtA[:i])
  1471  			if err != nil {
  1472  				return 0, err
  1473  			}
  1474  			i -= size
  1475  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1476  		}
  1477  		i--
  1478  		dAtA[i] = 0xa
  1479  	}
  1480  	return len(dAtA) - i, nil
  1481  }
  1482  func (m *RegisterUsingTPMMethodRequest_ChallengeResponse) MarshalTo(dAtA []byte) (int, error) {
  1483  	size := m.Size()
  1484  	return m.MarshalToSizedBuffer(dAtA[:size])
  1485  }
  1486  
  1487  func (m *RegisterUsingTPMMethodRequest_ChallengeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1488  	i := len(dAtA)
  1489  	if m.ChallengeResponse != nil {
  1490  		{
  1491  			size, err := m.ChallengeResponse.MarshalToSizedBuffer(dAtA[:i])
  1492  			if err != nil {
  1493  				return 0, err
  1494  			}
  1495  			i -= size
  1496  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1497  		}
  1498  		i--
  1499  		dAtA[i] = 0x12
  1500  	}
  1501  	return len(dAtA) - i, nil
  1502  }
  1503  func (m *RegisterUsingTPMMethodResponse) Marshal() (dAtA []byte, err error) {
  1504  	size := m.Size()
  1505  	dAtA = make([]byte, size)
  1506  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1507  	if err != nil {
  1508  		return nil, err
  1509  	}
  1510  	return dAtA[:n], nil
  1511  }
  1512  
  1513  func (m *RegisterUsingTPMMethodResponse) MarshalTo(dAtA []byte) (int, error) {
  1514  	size := m.Size()
  1515  	return m.MarshalToSizedBuffer(dAtA[:size])
  1516  }
  1517  
  1518  func (m *RegisterUsingTPMMethodResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1519  	i := len(dAtA)
  1520  	_ = i
  1521  	var l int
  1522  	_ = l
  1523  	if m.XXX_unrecognized != nil {
  1524  		i -= len(m.XXX_unrecognized)
  1525  		copy(dAtA[i:], m.XXX_unrecognized)
  1526  	}
  1527  	if m.Payload != nil {
  1528  		{
  1529  			size := m.Payload.Size()
  1530  			i -= size
  1531  			if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil {
  1532  				return 0, err
  1533  			}
  1534  		}
  1535  	}
  1536  	return len(dAtA) - i, nil
  1537  }
  1538  
  1539  func (m *RegisterUsingTPMMethodResponse_ChallengeRequest) MarshalTo(dAtA []byte) (int, error) {
  1540  	size := m.Size()
  1541  	return m.MarshalToSizedBuffer(dAtA[:size])
  1542  }
  1543  
  1544  func (m *RegisterUsingTPMMethodResponse_ChallengeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1545  	i := len(dAtA)
  1546  	if m.ChallengeRequest != nil {
  1547  		{
  1548  			size, err := m.ChallengeRequest.MarshalToSizedBuffer(dAtA[:i])
  1549  			if err != nil {
  1550  				return 0, err
  1551  			}
  1552  			i -= size
  1553  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1554  		}
  1555  		i--
  1556  		dAtA[i] = 0xa
  1557  	}
  1558  	return len(dAtA) - i, nil
  1559  }
  1560  func (m *RegisterUsingTPMMethodResponse_Certs) MarshalTo(dAtA []byte) (int, error) {
  1561  	size := m.Size()
  1562  	return m.MarshalToSizedBuffer(dAtA[:size])
  1563  }
  1564  
  1565  func (m *RegisterUsingTPMMethodResponse_Certs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1566  	i := len(dAtA)
  1567  	if m.Certs != nil {
  1568  		{
  1569  			size, err := m.Certs.MarshalToSizedBuffer(dAtA[:i])
  1570  			if err != nil {
  1571  				return 0, err
  1572  			}
  1573  			i -= size
  1574  			i = encodeVarintJoinservice(dAtA, i, uint64(size))
  1575  		}
  1576  		i--
  1577  		dAtA[i] = 0x12
  1578  	}
  1579  	return len(dAtA) - i, nil
  1580  }
  1581  func (m *TPMAttestationParameters) Marshal() (dAtA []byte, err error) {
  1582  	size := m.Size()
  1583  	dAtA = make([]byte, size)
  1584  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1585  	if err != nil {
  1586  		return nil, err
  1587  	}
  1588  	return dAtA[:n], nil
  1589  }
  1590  
  1591  func (m *TPMAttestationParameters) MarshalTo(dAtA []byte) (int, error) {
  1592  	size := m.Size()
  1593  	return m.MarshalToSizedBuffer(dAtA[:size])
  1594  }
  1595  
  1596  func (m *TPMAttestationParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1597  	i := len(dAtA)
  1598  	_ = i
  1599  	var l int
  1600  	_ = l
  1601  	if m.XXX_unrecognized != nil {
  1602  		i -= len(m.XXX_unrecognized)
  1603  		copy(dAtA[i:], m.XXX_unrecognized)
  1604  	}
  1605  	if len(m.CreateSignature) > 0 {
  1606  		i -= len(m.CreateSignature)
  1607  		copy(dAtA[i:], m.CreateSignature)
  1608  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.CreateSignature)))
  1609  		i--
  1610  		dAtA[i] = 0x22
  1611  	}
  1612  	if len(m.CreateAttestation) > 0 {
  1613  		i -= len(m.CreateAttestation)
  1614  		copy(dAtA[i:], m.CreateAttestation)
  1615  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.CreateAttestation)))
  1616  		i--
  1617  		dAtA[i] = 0x1a
  1618  	}
  1619  	if len(m.CreateData) > 0 {
  1620  		i -= len(m.CreateData)
  1621  		copy(dAtA[i:], m.CreateData)
  1622  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.CreateData)))
  1623  		i--
  1624  		dAtA[i] = 0x12
  1625  	}
  1626  	if len(m.Public) > 0 {
  1627  		i -= len(m.Public)
  1628  		copy(dAtA[i:], m.Public)
  1629  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.Public)))
  1630  		i--
  1631  		dAtA[i] = 0xa
  1632  	}
  1633  	return len(dAtA) - i, nil
  1634  }
  1635  
  1636  func (m *TPMEncryptedCredential) Marshal() (dAtA []byte, err error) {
  1637  	size := m.Size()
  1638  	dAtA = make([]byte, size)
  1639  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1640  	if err != nil {
  1641  		return nil, err
  1642  	}
  1643  	return dAtA[:n], nil
  1644  }
  1645  
  1646  func (m *TPMEncryptedCredential) MarshalTo(dAtA []byte) (int, error) {
  1647  	size := m.Size()
  1648  	return m.MarshalToSizedBuffer(dAtA[:size])
  1649  }
  1650  
  1651  func (m *TPMEncryptedCredential) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1652  	i := len(dAtA)
  1653  	_ = i
  1654  	var l int
  1655  	_ = l
  1656  	if m.XXX_unrecognized != nil {
  1657  		i -= len(m.XXX_unrecognized)
  1658  		copy(dAtA[i:], m.XXX_unrecognized)
  1659  	}
  1660  	if len(m.Secret) > 0 {
  1661  		i -= len(m.Secret)
  1662  		copy(dAtA[i:], m.Secret)
  1663  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.Secret)))
  1664  		i--
  1665  		dAtA[i] = 0x12
  1666  	}
  1667  	if len(m.CredentialBlob) > 0 {
  1668  		i -= len(m.CredentialBlob)
  1669  		copy(dAtA[i:], m.CredentialBlob)
  1670  		i = encodeVarintJoinservice(dAtA, i, uint64(len(m.CredentialBlob)))
  1671  		i--
  1672  		dAtA[i] = 0xa
  1673  	}
  1674  	return len(dAtA) - i, nil
  1675  }
  1676  
  1677  func encodeVarintJoinservice(dAtA []byte, offset int, v uint64) int {
  1678  	offset -= sovJoinservice(v)
  1679  	base := offset
  1680  	for v >= 1<<7 {
  1681  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1682  		v >>= 7
  1683  		offset++
  1684  	}
  1685  	dAtA[offset] = uint8(v)
  1686  	return base
  1687  }
  1688  func (m *RegisterUsingIAMMethodRequest) Size() (n int) {
  1689  	if m == nil {
  1690  		return 0
  1691  	}
  1692  	var l int
  1693  	_ = l
  1694  	if m.RegisterUsingTokenRequest != nil {
  1695  		l = m.RegisterUsingTokenRequest.Size()
  1696  		n += 1 + l + sovJoinservice(uint64(l))
  1697  	}
  1698  	l = len(m.StsIdentityRequest)
  1699  	if l > 0 {
  1700  		n += 1 + l + sovJoinservice(uint64(l))
  1701  	}
  1702  	if m.XXX_unrecognized != nil {
  1703  		n += len(m.XXX_unrecognized)
  1704  	}
  1705  	return n
  1706  }
  1707  
  1708  func (m *RegisterUsingIAMMethodResponse) Size() (n int) {
  1709  	if m == nil {
  1710  		return 0
  1711  	}
  1712  	var l int
  1713  	_ = l
  1714  	l = len(m.Challenge)
  1715  	if l > 0 {
  1716  		n += 1 + l + sovJoinservice(uint64(l))
  1717  	}
  1718  	if m.Certs != nil {
  1719  		l = m.Certs.Size()
  1720  		n += 1 + l + sovJoinservice(uint64(l))
  1721  	}
  1722  	if m.XXX_unrecognized != nil {
  1723  		n += len(m.XXX_unrecognized)
  1724  	}
  1725  	return n
  1726  }
  1727  
  1728  func (m *RegisterUsingAzureMethodRequest) Size() (n int) {
  1729  	if m == nil {
  1730  		return 0
  1731  	}
  1732  	var l int
  1733  	_ = l
  1734  	if m.RegisterUsingTokenRequest != nil {
  1735  		l = m.RegisterUsingTokenRequest.Size()
  1736  		n += 1 + l + sovJoinservice(uint64(l))
  1737  	}
  1738  	l = len(m.AttestedData)
  1739  	if l > 0 {
  1740  		n += 1 + l + sovJoinservice(uint64(l))
  1741  	}
  1742  	l = len(m.AccessToken)
  1743  	if l > 0 {
  1744  		n += 1 + l + sovJoinservice(uint64(l))
  1745  	}
  1746  	if m.XXX_unrecognized != nil {
  1747  		n += len(m.XXX_unrecognized)
  1748  	}
  1749  	return n
  1750  }
  1751  
  1752  func (m *RegisterUsingAzureMethodResponse) Size() (n int) {
  1753  	if m == nil {
  1754  		return 0
  1755  	}
  1756  	var l int
  1757  	_ = l
  1758  	l = len(m.Challenge)
  1759  	if l > 0 {
  1760  		n += 1 + l + sovJoinservice(uint64(l))
  1761  	}
  1762  	if m.Certs != nil {
  1763  		l = m.Certs.Size()
  1764  		n += 1 + l + sovJoinservice(uint64(l))
  1765  	}
  1766  	if m.XXX_unrecognized != nil {
  1767  		n += len(m.XXX_unrecognized)
  1768  	}
  1769  	return n
  1770  }
  1771  
  1772  func (m *RegisterUsingTPMMethodChallengeResponse) Size() (n int) {
  1773  	if m == nil {
  1774  		return 0
  1775  	}
  1776  	var l int
  1777  	_ = l
  1778  	l = len(m.Solution)
  1779  	if l > 0 {
  1780  		n += 1 + l + sovJoinservice(uint64(l))
  1781  	}
  1782  	if m.XXX_unrecognized != nil {
  1783  		n += len(m.XXX_unrecognized)
  1784  	}
  1785  	return n
  1786  }
  1787  
  1788  func (m *RegisterUsingTPMMethodInitialRequest) Size() (n int) {
  1789  	if m == nil {
  1790  		return 0
  1791  	}
  1792  	var l int
  1793  	_ = l
  1794  	if m.JoinRequest != nil {
  1795  		l = m.JoinRequest.Size()
  1796  		n += 1 + l + sovJoinservice(uint64(l))
  1797  	}
  1798  	if m.Ek != nil {
  1799  		n += m.Ek.Size()
  1800  	}
  1801  	if m.AttestationParams != nil {
  1802  		l = m.AttestationParams.Size()
  1803  		n += 1 + l + sovJoinservice(uint64(l))
  1804  	}
  1805  	if m.XXX_unrecognized != nil {
  1806  		n += len(m.XXX_unrecognized)
  1807  	}
  1808  	return n
  1809  }
  1810  
  1811  func (m *RegisterUsingTPMMethodInitialRequest_EkCert) Size() (n int) {
  1812  	if m == nil {
  1813  		return 0
  1814  	}
  1815  	var l int
  1816  	_ = l
  1817  	if m.EkCert != nil {
  1818  		l = len(m.EkCert)
  1819  		n += 1 + l + sovJoinservice(uint64(l))
  1820  	}
  1821  	return n
  1822  }
  1823  func (m *RegisterUsingTPMMethodInitialRequest_EkKey) Size() (n int) {
  1824  	if m == nil {
  1825  		return 0
  1826  	}
  1827  	var l int
  1828  	_ = l
  1829  	if m.EkKey != nil {
  1830  		l = len(m.EkKey)
  1831  		n += 1 + l + sovJoinservice(uint64(l))
  1832  	}
  1833  	return n
  1834  }
  1835  func (m *RegisterUsingTPMMethodRequest) Size() (n int) {
  1836  	if m == nil {
  1837  		return 0
  1838  	}
  1839  	var l int
  1840  	_ = l
  1841  	if m.Payload != nil {
  1842  		n += m.Payload.Size()
  1843  	}
  1844  	if m.XXX_unrecognized != nil {
  1845  		n += len(m.XXX_unrecognized)
  1846  	}
  1847  	return n
  1848  }
  1849  
  1850  func (m *RegisterUsingTPMMethodRequest_Init) Size() (n int) {
  1851  	if m == nil {
  1852  		return 0
  1853  	}
  1854  	var l int
  1855  	_ = l
  1856  	if m.Init != nil {
  1857  		l = m.Init.Size()
  1858  		n += 1 + l + sovJoinservice(uint64(l))
  1859  	}
  1860  	return n
  1861  }
  1862  func (m *RegisterUsingTPMMethodRequest_ChallengeResponse) Size() (n int) {
  1863  	if m == nil {
  1864  		return 0
  1865  	}
  1866  	var l int
  1867  	_ = l
  1868  	if m.ChallengeResponse != nil {
  1869  		l = m.ChallengeResponse.Size()
  1870  		n += 1 + l + sovJoinservice(uint64(l))
  1871  	}
  1872  	return n
  1873  }
  1874  func (m *RegisterUsingTPMMethodResponse) Size() (n int) {
  1875  	if m == nil {
  1876  		return 0
  1877  	}
  1878  	var l int
  1879  	_ = l
  1880  	if m.Payload != nil {
  1881  		n += m.Payload.Size()
  1882  	}
  1883  	if m.XXX_unrecognized != nil {
  1884  		n += len(m.XXX_unrecognized)
  1885  	}
  1886  	return n
  1887  }
  1888  
  1889  func (m *RegisterUsingTPMMethodResponse_ChallengeRequest) Size() (n int) {
  1890  	if m == nil {
  1891  		return 0
  1892  	}
  1893  	var l int
  1894  	_ = l
  1895  	if m.ChallengeRequest != nil {
  1896  		l = m.ChallengeRequest.Size()
  1897  		n += 1 + l + sovJoinservice(uint64(l))
  1898  	}
  1899  	return n
  1900  }
  1901  func (m *RegisterUsingTPMMethodResponse_Certs) Size() (n int) {
  1902  	if m == nil {
  1903  		return 0
  1904  	}
  1905  	var l int
  1906  	_ = l
  1907  	if m.Certs != nil {
  1908  		l = m.Certs.Size()
  1909  		n += 1 + l + sovJoinservice(uint64(l))
  1910  	}
  1911  	return n
  1912  }
  1913  func (m *TPMAttestationParameters) Size() (n int) {
  1914  	if m == nil {
  1915  		return 0
  1916  	}
  1917  	var l int
  1918  	_ = l
  1919  	l = len(m.Public)
  1920  	if l > 0 {
  1921  		n += 1 + l + sovJoinservice(uint64(l))
  1922  	}
  1923  	l = len(m.CreateData)
  1924  	if l > 0 {
  1925  		n += 1 + l + sovJoinservice(uint64(l))
  1926  	}
  1927  	l = len(m.CreateAttestation)
  1928  	if l > 0 {
  1929  		n += 1 + l + sovJoinservice(uint64(l))
  1930  	}
  1931  	l = len(m.CreateSignature)
  1932  	if l > 0 {
  1933  		n += 1 + l + sovJoinservice(uint64(l))
  1934  	}
  1935  	if m.XXX_unrecognized != nil {
  1936  		n += len(m.XXX_unrecognized)
  1937  	}
  1938  	return n
  1939  }
  1940  
  1941  func (m *TPMEncryptedCredential) Size() (n int) {
  1942  	if m == nil {
  1943  		return 0
  1944  	}
  1945  	var l int
  1946  	_ = l
  1947  	l = len(m.CredentialBlob)
  1948  	if l > 0 {
  1949  		n += 1 + l + sovJoinservice(uint64(l))
  1950  	}
  1951  	l = len(m.Secret)
  1952  	if l > 0 {
  1953  		n += 1 + l + sovJoinservice(uint64(l))
  1954  	}
  1955  	if m.XXX_unrecognized != nil {
  1956  		n += len(m.XXX_unrecognized)
  1957  	}
  1958  	return n
  1959  }
  1960  
  1961  func sovJoinservice(x uint64) (n int) {
  1962  	return (math_bits.Len64(x|1) + 6) / 7
  1963  }
  1964  func sozJoinservice(x uint64) (n int) {
  1965  	return sovJoinservice(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1966  }
  1967  func (m *RegisterUsingIAMMethodRequest) Unmarshal(dAtA []byte) error {
  1968  	l := len(dAtA)
  1969  	iNdEx := 0
  1970  	for iNdEx < l {
  1971  		preIndex := iNdEx
  1972  		var wire uint64
  1973  		for shift := uint(0); ; shift += 7 {
  1974  			if shift >= 64 {
  1975  				return ErrIntOverflowJoinservice
  1976  			}
  1977  			if iNdEx >= l {
  1978  				return io.ErrUnexpectedEOF
  1979  			}
  1980  			b := dAtA[iNdEx]
  1981  			iNdEx++
  1982  			wire |= uint64(b&0x7F) << shift
  1983  			if b < 0x80 {
  1984  				break
  1985  			}
  1986  		}
  1987  		fieldNum := int32(wire >> 3)
  1988  		wireType := int(wire & 0x7)
  1989  		if wireType == 4 {
  1990  			return fmt.Errorf("proto: RegisterUsingIAMMethodRequest: wiretype end group for non-group")
  1991  		}
  1992  		if fieldNum <= 0 {
  1993  			return fmt.Errorf("proto: RegisterUsingIAMMethodRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1994  		}
  1995  		switch fieldNum {
  1996  		case 1:
  1997  			if wireType != 2 {
  1998  				return fmt.Errorf("proto: wrong wireType = %d for field RegisterUsingTokenRequest", wireType)
  1999  			}
  2000  			var msglen int
  2001  			for shift := uint(0); ; shift += 7 {
  2002  				if shift >= 64 {
  2003  					return ErrIntOverflowJoinservice
  2004  				}
  2005  				if iNdEx >= l {
  2006  					return io.ErrUnexpectedEOF
  2007  				}
  2008  				b := dAtA[iNdEx]
  2009  				iNdEx++
  2010  				msglen |= int(b&0x7F) << shift
  2011  				if b < 0x80 {
  2012  					break
  2013  				}
  2014  			}
  2015  			if msglen < 0 {
  2016  				return ErrInvalidLengthJoinservice
  2017  			}
  2018  			postIndex := iNdEx + msglen
  2019  			if postIndex < 0 {
  2020  				return ErrInvalidLengthJoinservice
  2021  			}
  2022  			if postIndex > l {
  2023  				return io.ErrUnexpectedEOF
  2024  			}
  2025  			if m.RegisterUsingTokenRequest == nil {
  2026  				m.RegisterUsingTokenRequest = &types.RegisterUsingTokenRequest{}
  2027  			}
  2028  			if err := m.RegisterUsingTokenRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2029  				return err
  2030  			}
  2031  			iNdEx = postIndex
  2032  		case 2:
  2033  			if wireType != 2 {
  2034  				return fmt.Errorf("proto: wrong wireType = %d for field StsIdentityRequest", wireType)
  2035  			}
  2036  			var byteLen int
  2037  			for shift := uint(0); ; shift += 7 {
  2038  				if shift >= 64 {
  2039  					return ErrIntOverflowJoinservice
  2040  				}
  2041  				if iNdEx >= l {
  2042  					return io.ErrUnexpectedEOF
  2043  				}
  2044  				b := dAtA[iNdEx]
  2045  				iNdEx++
  2046  				byteLen |= int(b&0x7F) << shift
  2047  				if b < 0x80 {
  2048  					break
  2049  				}
  2050  			}
  2051  			if byteLen < 0 {
  2052  				return ErrInvalidLengthJoinservice
  2053  			}
  2054  			postIndex := iNdEx + byteLen
  2055  			if postIndex < 0 {
  2056  				return ErrInvalidLengthJoinservice
  2057  			}
  2058  			if postIndex > l {
  2059  				return io.ErrUnexpectedEOF
  2060  			}
  2061  			m.StsIdentityRequest = append(m.StsIdentityRequest[:0], dAtA[iNdEx:postIndex]...)
  2062  			if m.StsIdentityRequest == nil {
  2063  				m.StsIdentityRequest = []byte{}
  2064  			}
  2065  			iNdEx = postIndex
  2066  		default:
  2067  			iNdEx = preIndex
  2068  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  2069  			if err != nil {
  2070  				return err
  2071  			}
  2072  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2073  				return ErrInvalidLengthJoinservice
  2074  			}
  2075  			if (iNdEx + skippy) > l {
  2076  				return io.ErrUnexpectedEOF
  2077  			}
  2078  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2079  			iNdEx += skippy
  2080  		}
  2081  	}
  2082  
  2083  	if iNdEx > l {
  2084  		return io.ErrUnexpectedEOF
  2085  	}
  2086  	return nil
  2087  }
  2088  func (m *RegisterUsingIAMMethodResponse) Unmarshal(dAtA []byte) error {
  2089  	l := len(dAtA)
  2090  	iNdEx := 0
  2091  	for iNdEx < l {
  2092  		preIndex := iNdEx
  2093  		var wire uint64
  2094  		for shift := uint(0); ; shift += 7 {
  2095  			if shift >= 64 {
  2096  				return ErrIntOverflowJoinservice
  2097  			}
  2098  			if iNdEx >= l {
  2099  				return io.ErrUnexpectedEOF
  2100  			}
  2101  			b := dAtA[iNdEx]
  2102  			iNdEx++
  2103  			wire |= uint64(b&0x7F) << shift
  2104  			if b < 0x80 {
  2105  				break
  2106  			}
  2107  		}
  2108  		fieldNum := int32(wire >> 3)
  2109  		wireType := int(wire & 0x7)
  2110  		if wireType == 4 {
  2111  			return fmt.Errorf("proto: RegisterUsingIAMMethodResponse: wiretype end group for non-group")
  2112  		}
  2113  		if fieldNum <= 0 {
  2114  			return fmt.Errorf("proto: RegisterUsingIAMMethodResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2115  		}
  2116  		switch fieldNum {
  2117  		case 1:
  2118  			if wireType != 2 {
  2119  				return fmt.Errorf("proto: wrong wireType = %d for field Challenge", wireType)
  2120  			}
  2121  			var stringLen uint64
  2122  			for shift := uint(0); ; shift += 7 {
  2123  				if shift >= 64 {
  2124  					return ErrIntOverflowJoinservice
  2125  				}
  2126  				if iNdEx >= l {
  2127  					return io.ErrUnexpectedEOF
  2128  				}
  2129  				b := dAtA[iNdEx]
  2130  				iNdEx++
  2131  				stringLen |= uint64(b&0x7F) << shift
  2132  				if b < 0x80 {
  2133  					break
  2134  				}
  2135  			}
  2136  			intStringLen := int(stringLen)
  2137  			if intStringLen < 0 {
  2138  				return ErrInvalidLengthJoinservice
  2139  			}
  2140  			postIndex := iNdEx + intStringLen
  2141  			if postIndex < 0 {
  2142  				return ErrInvalidLengthJoinservice
  2143  			}
  2144  			if postIndex > l {
  2145  				return io.ErrUnexpectedEOF
  2146  			}
  2147  			m.Challenge = string(dAtA[iNdEx:postIndex])
  2148  			iNdEx = postIndex
  2149  		case 2:
  2150  			if wireType != 2 {
  2151  				return fmt.Errorf("proto: wrong wireType = %d for field Certs", wireType)
  2152  			}
  2153  			var msglen int
  2154  			for shift := uint(0); ; shift += 7 {
  2155  				if shift >= 64 {
  2156  					return ErrIntOverflowJoinservice
  2157  				}
  2158  				if iNdEx >= l {
  2159  					return io.ErrUnexpectedEOF
  2160  				}
  2161  				b := dAtA[iNdEx]
  2162  				iNdEx++
  2163  				msglen |= int(b&0x7F) << shift
  2164  				if b < 0x80 {
  2165  					break
  2166  				}
  2167  			}
  2168  			if msglen < 0 {
  2169  				return ErrInvalidLengthJoinservice
  2170  			}
  2171  			postIndex := iNdEx + msglen
  2172  			if postIndex < 0 {
  2173  				return ErrInvalidLengthJoinservice
  2174  			}
  2175  			if postIndex > l {
  2176  				return io.ErrUnexpectedEOF
  2177  			}
  2178  			if m.Certs == nil {
  2179  				m.Certs = &Certs{}
  2180  			}
  2181  			if err := m.Certs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2182  				return err
  2183  			}
  2184  			iNdEx = postIndex
  2185  		default:
  2186  			iNdEx = preIndex
  2187  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  2188  			if err != nil {
  2189  				return err
  2190  			}
  2191  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2192  				return ErrInvalidLengthJoinservice
  2193  			}
  2194  			if (iNdEx + skippy) > l {
  2195  				return io.ErrUnexpectedEOF
  2196  			}
  2197  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2198  			iNdEx += skippy
  2199  		}
  2200  	}
  2201  
  2202  	if iNdEx > l {
  2203  		return io.ErrUnexpectedEOF
  2204  	}
  2205  	return nil
  2206  }
  2207  func (m *RegisterUsingAzureMethodRequest) Unmarshal(dAtA []byte) error {
  2208  	l := len(dAtA)
  2209  	iNdEx := 0
  2210  	for iNdEx < l {
  2211  		preIndex := iNdEx
  2212  		var wire uint64
  2213  		for shift := uint(0); ; shift += 7 {
  2214  			if shift >= 64 {
  2215  				return ErrIntOverflowJoinservice
  2216  			}
  2217  			if iNdEx >= l {
  2218  				return io.ErrUnexpectedEOF
  2219  			}
  2220  			b := dAtA[iNdEx]
  2221  			iNdEx++
  2222  			wire |= uint64(b&0x7F) << shift
  2223  			if b < 0x80 {
  2224  				break
  2225  			}
  2226  		}
  2227  		fieldNum := int32(wire >> 3)
  2228  		wireType := int(wire & 0x7)
  2229  		if wireType == 4 {
  2230  			return fmt.Errorf("proto: RegisterUsingAzureMethodRequest: wiretype end group for non-group")
  2231  		}
  2232  		if fieldNum <= 0 {
  2233  			return fmt.Errorf("proto: RegisterUsingAzureMethodRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2234  		}
  2235  		switch fieldNum {
  2236  		case 1:
  2237  			if wireType != 2 {
  2238  				return fmt.Errorf("proto: wrong wireType = %d for field RegisterUsingTokenRequest", wireType)
  2239  			}
  2240  			var msglen int
  2241  			for shift := uint(0); ; shift += 7 {
  2242  				if shift >= 64 {
  2243  					return ErrIntOverflowJoinservice
  2244  				}
  2245  				if iNdEx >= l {
  2246  					return io.ErrUnexpectedEOF
  2247  				}
  2248  				b := dAtA[iNdEx]
  2249  				iNdEx++
  2250  				msglen |= int(b&0x7F) << shift
  2251  				if b < 0x80 {
  2252  					break
  2253  				}
  2254  			}
  2255  			if msglen < 0 {
  2256  				return ErrInvalidLengthJoinservice
  2257  			}
  2258  			postIndex := iNdEx + msglen
  2259  			if postIndex < 0 {
  2260  				return ErrInvalidLengthJoinservice
  2261  			}
  2262  			if postIndex > l {
  2263  				return io.ErrUnexpectedEOF
  2264  			}
  2265  			if m.RegisterUsingTokenRequest == nil {
  2266  				m.RegisterUsingTokenRequest = &types.RegisterUsingTokenRequest{}
  2267  			}
  2268  			if err := m.RegisterUsingTokenRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2269  				return err
  2270  			}
  2271  			iNdEx = postIndex
  2272  		case 2:
  2273  			if wireType != 2 {
  2274  				return fmt.Errorf("proto: wrong wireType = %d for field AttestedData", wireType)
  2275  			}
  2276  			var byteLen int
  2277  			for shift := uint(0); ; shift += 7 {
  2278  				if shift >= 64 {
  2279  					return ErrIntOverflowJoinservice
  2280  				}
  2281  				if iNdEx >= l {
  2282  					return io.ErrUnexpectedEOF
  2283  				}
  2284  				b := dAtA[iNdEx]
  2285  				iNdEx++
  2286  				byteLen |= int(b&0x7F) << shift
  2287  				if b < 0x80 {
  2288  					break
  2289  				}
  2290  			}
  2291  			if byteLen < 0 {
  2292  				return ErrInvalidLengthJoinservice
  2293  			}
  2294  			postIndex := iNdEx + byteLen
  2295  			if postIndex < 0 {
  2296  				return ErrInvalidLengthJoinservice
  2297  			}
  2298  			if postIndex > l {
  2299  				return io.ErrUnexpectedEOF
  2300  			}
  2301  			m.AttestedData = append(m.AttestedData[:0], dAtA[iNdEx:postIndex]...)
  2302  			if m.AttestedData == nil {
  2303  				m.AttestedData = []byte{}
  2304  			}
  2305  			iNdEx = postIndex
  2306  		case 3:
  2307  			if wireType != 2 {
  2308  				return fmt.Errorf("proto: wrong wireType = %d for field AccessToken", wireType)
  2309  			}
  2310  			var stringLen uint64
  2311  			for shift := uint(0); ; shift += 7 {
  2312  				if shift >= 64 {
  2313  					return ErrIntOverflowJoinservice
  2314  				}
  2315  				if iNdEx >= l {
  2316  					return io.ErrUnexpectedEOF
  2317  				}
  2318  				b := dAtA[iNdEx]
  2319  				iNdEx++
  2320  				stringLen |= uint64(b&0x7F) << shift
  2321  				if b < 0x80 {
  2322  					break
  2323  				}
  2324  			}
  2325  			intStringLen := int(stringLen)
  2326  			if intStringLen < 0 {
  2327  				return ErrInvalidLengthJoinservice
  2328  			}
  2329  			postIndex := iNdEx + intStringLen
  2330  			if postIndex < 0 {
  2331  				return ErrInvalidLengthJoinservice
  2332  			}
  2333  			if postIndex > l {
  2334  				return io.ErrUnexpectedEOF
  2335  			}
  2336  			m.AccessToken = string(dAtA[iNdEx:postIndex])
  2337  			iNdEx = postIndex
  2338  		default:
  2339  			iNdEx = preIndex
  2340  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  2341  			if err != nil {
  2342  				return err
  2343  			}
  2344  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2345  				return ErrInvalidLengthJoinservice
  2346  			}
  2347  			if (iNdEx + skippy) > l {
  2348  				return io.ErrUnexpectedEOF
  2349  			}
  2350  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2351  			iNdEx += skippy
  2352  		}
  2353  	}
  2354  
  2355  	if iNdEx > l {
  2356  		return io.ErrUnexpectedEOF
  2357  	}
  2358  	return nil
  2359  }
  2360  func (m *RegisterUsingAzureMethodResponse) Unmarshal(dAtA []byte) error {
  2361  	l := len(dAtA)
  2362  	iNdEx := 0
  2363  	for iNdEx < l {
  2364  		preIndex := iNdEx
  2365  		var wire uint64
  2366  		for shift := uint(0); ; shift += 7 {
  2367  			if shift >= 64 {
  2368  				return ErrIntOverflowJoinservice
  2369  			}
  2370  			if iNdEx >= l {
  2371  				return io.ErrUnexpectedEOF
  2372  			}
  2373  			b := dAtA[iNdEx]
  2374  			iNdEx++
  2375  			wire |= uint64(b&0x7F) << shift
  2376  			if b < 0x80 {
  2377  				break
  2378  			}
  2379  		}
  2380  		fieldNum := int32(wire >> 3)
  2381  		wireType := int(wire & 0x7)
  2382  		if wireType == 4 {
  2383  			return fmt.Errorf("proto: RegisterUsingAzureMethodResponse: wiretype end group for non-group")
  2384  		}
  2385  		if fieldNum <= 0 {
  2386  			return fmt.Errorf("proto: RegisterUsingAzureMethodResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2387  		}
  2388  		switch fieldNum {
  2389  		case 1:
  2390  			if wireType != 2 {
  2391  				return fmt.Errorf("proto: wrong wireType = %d for field Challenge", wireType)
  2392  			}
  2393  			var stringLen uint64
  2394  			for shift := uint(0); ; shift += 7 {
  2395  				if shift >= 64 {
  2396  					return ErrIntOverflowJoinservice
  2397  				}
  2398  				if iNdEx >= l {
  2399  					return io.ErrUnexpectedEOF
  2400  				}
  2401  				b := dAtA[iNdEx]
  2402  				iNdEx++
  2403  				stringLen |= uint64(b&0x7F) << shift
  2404  				if b < 0x80 {
  2405  					break
  2406  				}
  2407  			}
  2408  			intStringLen := int(stringLen)
  2409  			if intStringLen < 0 {
  2410  				return ErrInvalidLengthJoinservice
  2411  			}
  2412  			postIndex := iNdEx + intStringLen
  2413  			if postIndex < 0 {
  2414  				return ErrInvalidLengthJoinservice
  2415  			}
  2416  			if postIndex > l {
  2417  				return io.ErrUnexpectedEOF
  2418  			}
  2419  			m.Challenge = string(dAtA[iNdEx:postIndex])
  2420  			iNdEx = postIndex
  2421  		case 2:
  2422  			if wireType != 2 {
  2423  				return fmt.Errorf("proto: wrong wireType = %d for field Certs", wireType)
  2424  			}
  2425  			var msglen int
  2426  			for shift := uint(0); ; shift += 7 {
  2427  				if shift >= 64 {
  2428  					return ErrIntOverflowJoinservice
  2429  				}
  2430  				if iNdEx >= l {
  2431  					return io.ErrUnexpectedEOF
  2432  				}
  2433  				b := dAtA[iNdEx]
  2434  				iNdEx++
  2435  				msglen |= int(b&0x7F) << shift
  2436  				if b < 0x80 {
  2437  					break
  2438  				}
  2439  			}
  2440  			if msglen < 0 {
  2441  				return ErrInvalidLengthJoinservice
  2442  			}
  2443  			postIndex := iNdEx + msglen
  2444  			if postIndex < 0 {
  2445  				return ErrInvalidLengthJoinservice
  2446  			}
  2447  			if postIndex > l {
  2448  				return io.ErrUnexpectedEOF
  2449  			}
  2450  			if m.Certs == nil {
  2451  				m.Certs = &Certs{}
  2452  			}
  2453  			if err := m.Certs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2454  				return err
  2455  			}
  2456  			iNdEx = postIndex
  2457  		default:
  2458  			iNdEx = preIndex
  2459  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  2460  			if err != nil {
  2461  				return err
  2462  			}
  2463  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2464  				return ErrInvalidLengthJoinservice
  2465  			}
  2466  			if (iNdEx + skippy) > l {
  2467  				return io.ErrUnexpectedEOF
  2468  			}
  2469  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2470  			iNdEx += skippy
  2471  		}
  2472  	}
  2473  
  2474  	if iNdEx > l {
  2475  		return io.ErrUnexpectedEOF
  2476  	}
  2477  	return nil
  2478  }
  2479  func (m *RegisterUsingTPMMethodChallengeResponse) Unmarshal(dAtA []byte) error {
  2480  	l := len(dAtA)
  2481  	iNdEx := 0
  2482  	for iNdEx < l {
  2483  		preIndex := iNdEx
  2484  		var wire uint64
  2485  		for shift := uint(0); ; shift += 7 {
  2486  			if shift >= 64 {
  2487  				return ErrIntOverflowJoinservice
  2488  			}
  2489  			if iNdEx >= l {
  2490  				return io.ErrUnexpectedEOF
  2491  			}
  2492  			b := dAtA[iNdEx]
  2493  			iNdEx++
  2494  			wire |= uint64(b&0x7F) << shift
  2495  			if b < 0x80 {
  2496  				break
  2497  			}
  2498  		}
  2499  		fieldNum := int32(wire >> 3)
  2500  		wireType := int(wire & 0x7)
  2501  		if wireType == 4 {
  2502  			return fmt.Errorf("proto: RegisterUsingTPMMethodChallengeResponse: wiretype end group for non-group")
  2503  		}
  2504  		if fieldNum <= 0 {
  2505  			return fmt.Errorf("proto: RegisterUsingTPMMethodChallengeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2506  		}
  2507  		switch fieldNum {
  2508  		case 1:
  2509  			if wireType != 2 {
  2510  				return fmt.Errorf("proto: wrong wireType = %d for field Solution", wireType)
  2511  			}
  2512  			var byteLen int
  2513  			for shift := uint(0); ; shift += 7 {
  2514  				if shift >= 64 {
  2515  					return ErrIntOverflowJoinservice
  2516  				}
  2517  				if iNdEx >= l {
  2518  					return io.ErrUnexpectedEOF
  2519  				}
  2520  				b := dAtA[iNdEx]
  2521  				iNdEx++
  2522  				byteLen |= int(b&0x7F) << shift
  2523  				if b < 0x80 {
  2524  					break
  2525  				}
  2526  			}
  2527  			if byteLen < 0 {
  2528  				return ErrInvalidLengthJoinservice
  2529  			}
  2530  			postIndex := iNdEx + byteLen
  2531  			if postIndex < 0 {
  2532  				return ErrInvalidLengthJoinservice
  2533  			}
  2534  			if postIndex > l {
  2535  				return io.ErrUnexpectedEOF
  2536  			}
  2537  			m.Solution = append(m.Solution[:0], dAtA[iNdEx:postIndex]...)
  2538  			if m.Solution == nil {
  2539  				m.Solution = []byte{}
  2540  			}
  2541  			iNdEx = postIndex
  2542  		default:
  2543  			iNdEx = preIndex
  2544  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  2545  			if err != nil {
  2546  				return err
  2547  			}
  2548  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2549  				return ErrInvalidLengthJoinservice
  2550  			}
  2551  			if (iNdEx + skippy) > l {
  2552  				return io.ErrUnexpectedEOF
  2553  			}
  2554  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2555  			iNdEx += skippy
  2556  		}
  2557  	}
  2558  
  2559  	if iNdEx > l {
  2560  		return io.ErrUnexpectedEOF
  2561  	}
  2562  	return nil
  2563  }
  2564  func (m *RegisterUsingTPMMethodInitialRequest) Unmarshal(dAtA []byte) error {
  2565  	l := len(dAtA)
  2566  	iNdEx := 0
  2567  	for iNdEx < l {
  2568  		preIndex := iNdEx
  2569  		var wire uint64
  2570  		for shift := uint(0); ; shift += 7 {
  2571  			if shift >= 64 {
  2572  				return ErrIntOverflowJoinservice
  2573  			}
  2574  			if iNdEx >= l {
  2575  				return io.ErrUnexpectedEOF
  2576  			}
  2577  			b := dAtA[iNdEx]
  2578  			iNdEx++
  2579  			wire |= uint64(b&0x7F) << shift
  2580  			if b < 0x80 {
  2581  				break
  2582  			}
  2583  		}
  2584  		fieldNum := int32(wire >> 3)
  2585  		wireType := int(wire & 0x7)
  2586  		if wireType == 4 {
  2587  			return fmt.Errorf("proto: RegisterUsingTPMMethodInitialRequest: wiretype end group for non-group")
  2588  		}
  2589  		if fieldNum <= 0 {
  2590  			return fmt.Errorf("proto: RegisterUsingTPMMethodInitialRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2591  		}
  2592  		switch fieldNum {
  2593  		case 1:
  2594  			if wireType != 2 {
  2595  				return fmt.Errorf("proto: wrong wireType = %d for field JoinRequest", wireType)
  2596  			}
  2597  			var msglen int
  2598  			for shift := uint(0); ; shift += 7 {
  2599  				if shift >= 64 {
  2600  					return ErrIntOverflowJoinservice
  2601  				}
  2602  				if iNdEx >= l {
  2603  					return io.ErrUnexpectedEOF
  2604  				}
  2605  				b := dAtA[iNdEx]
  2606  				iNdEx++
  2607  				msglen |= int(b&0x7F) << shift
  2608  				if b < 0x80 {
  2609  					break
  2610  				}
  2611  			}
  2612  			if msglen < 0 {
  2613  				return ErrInvalidLengthJoinservice
  2614  			}
  2615  			postIndex := iNdEx + msglen
  2616  			if postIndex < 0 {
  2617  				return ErrInvalidLengthJoinservice
  2618  			}
  2619  			if postIndex > l {
  2620  				return io.ErrUnexpectedEOF
  2621  			}
  2622  			if m.JoinRequest == nil {
  2623  				m.JoinRequest = &types.RegisterUsingTokenRequest{}
  2624  			}
  2625  			if err := m.JoinRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2626  				return err
  2627  			}
  2628  			iNdEx = postIndex
  2629  		case 2:
  2630  			if wireType != 2 {
  2631  				return fmt.Errorf("proto: wrong wireType = %d for field EkCert", wireType)
  2632  			}
  2633  			var byteLen int
  2634  			for shift := uint(0); ; shift += 7 {
  2635  				if shift >= 64 {
  2636  					return ErrIntOverflowJoinservice
  2637  				}
  2638  				if iNdEx >= l {
  2639  					return io.ErrUnexpectedEOF
  2640  				}
  2641  				b := dAtA[iNdEx]
  2642  				iNdEx++
  2643  				byteLen |= int(b&0x7F) << shift
  2644  				if b < 0x80 {
  2645  					break
  2646  				}
  2647  			}
  2648  			if byteLen < 0 {
  2649  				return ErrInvalidLengthJoinservice
  2650  			}
  2651  			postIndex := iNdEx + byteLen
  2652  			if postIndex < 0 {
  2653  				return ErrInvalidLengthJoinservice
  2654  			}
  2655  			if postIndex > l {
  2656  				return io.ErrUnexpectedEOF
  2657  			}
  2658  			v := make([]byte, postIndex-iNdEx)
  2659  			copy(v, dAtA[iNdEx:postIndex])
  2660  			m.Ek = &RegisterUsingTPMMethodInitialRequest_EkCert{v}
  2661  			iNdEx = postIndex
  2662  		case 3:
  2663  			if wireType != 2 {
  2664  				return fmt.Errorf("proto: wrong wireType = %d for field EkKey", wireType)
  2665  			}
  2666  			var byteLen int
  2667  			for shift := uint(0); ; shift += 7 {
  2668  				if shift >= 64 {
  2669  					return ErrIntOverflowJoinservice
  2670  				}
  2671  				if iNdEx >= l {
  2672  					return io.ErrUnexpectedEOF
  2673  				}
  2674  				b := dAtA[iNdEx]
  2675  				iNdEx++
  2676  				byteLen |= int(b&0x7F) << shift
  2677  				if b < 0x80 {
  2678  					break
  2679  				}
  2680  			}
  2681  			if byteLen < 0 {
  2682  				return ErrInvalidLengthJoinservice
  2683  			}
  2684  			postIndex := iNdEx + byteLen
  2685  			if postIndex < 0 {
  2686  				return ErrInvalidLengthJoinservice
  2687  			}
  2688  			if postIndex > l {
  2689  				return io.ErrUnexpectedEOF
  2690  			}
  2691  			v := make([]byte, postIndex-iNdEx)
  2692  			copy(v, dAtA[iNdEx:postIndex])
  2693  			m.Ek = &RegisterUsingTPMMethodInitialRequest_EkKey{v}
  2694  			iNdEx = postIndex
  2695  		case 4:
  2696  			if wireType != 2 {
  2697  				return fmt.Errorf("proto: wrong wireType = %d for field AttestationParams", wireType)
  2698  			}
  2699  			var msglen int
  2700  			for shift := uint(0); ; shift += 7 {
  2701  				if shift >= 64 {
  2702  					return ErrIntOverflowJoinservice
  2703  				}
  2704  				if iNdEx >= l {
  2705  					return io.ErrUnexpectedEOF
  2706  				}
  2707  				b := dAtA[iNdEx]
  2708  				iNdEx++
  2709  				msglen |= int(b&0x7F) << shift
  2710  				if b < 0x80 {
  2711  					break
  2712  				}
  2713  			}
  2714  			if msglen < 0 {
  2715  				return ErrInvalidLengthJoinservice
  2716  			}
  2717  			postIndex := iNdEx + msglen
  2718  			if postIndex < 0 {
  2719  				return ErrInvalidLengthJoinservice
  2720  			}
  2721  			if postIndex > l {
  2722  				return io.ErrUnexpectedEOF
  2723  			}
  2724  			if m.AttestationParams == nil {
  2725  				m.AttestationParams = &TPMAttestationParameters{}
  2726  			}
  2727  			if err := m.AttestationParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2728  				return err
  2729  			}
  2730  			iNdEx = postIndex
  2731  		default:
  2732  			iNdEx = preIndex
  2733  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  2734  			if err != nil {
  2735  				return err
  2736  			}
  2737  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2738  				return ErrInvalidLengthJoinservice
  2739  			}
  2740  			if (iNdEx + skippy) > l {
  2741  				return io.ErrUnexpectedEOF
  2742  			}
  2743  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2744  			iNdEx += skippy
  2745  		}
  2746  	}
  2747  
  2748  	if iNdEx > l {
  2749  		return io.ErrUnexpectedEOF
  2750  	}
  2751  	return nil
  2752  }
  2753  func (m *RegisterUsingTPMMethodRequest) Unmarshal(dAtA []byte) error {
  2754  	l := len(dAtA)
  2755  	iNdEx := 0
  2756  	for iNdEx < l {
  2757  		preIndex := iNdEx
  2758  		var wire uint64
  2759  		for shift := uint(0); ; shift += 7 {
  2760  			if shift >= 64 {
  2761  				return ErrIntOverflowJoinservice
  2762  			}
  2763  			if iNdEx >= l {
  2764  				return io.ErrUnexpectedEOF
  2765  			}
  2766  			b := dAtA[iNdEx]
  2767  			iNdEx++
  2768  			wire |= uint64(b&0x7F) << shift
  2769  			if b < 0x80 {
  2770  				break
  2771  			}
  2772  		}
  2773  		fieldNum := int32(wire >> 3)
  2774  		wireType := int(wire & 0x7)
  2775  		if wireType == 4 {
  2776  			return fmt.Errorf("proto: RegisterUsingTPMMethodRequest: wiretype end group for non-group")
  2777  		}
  2778  		if fieldNum <= 0 {
  2779  			return fmt.Errorf("proto: RegisterUsingTPMMethodRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2780  		}
  2781  		switch fieldNum {
  2782  		case 1:
  2783  			if wireType != 2 {
  2784  				return fmt.Errorf("proto: wrong wireType = %d for field Init", wireType)
  2785  			}
  2786  			var msglen int
  2787  			for shift := uint(0); ; shift += 7 {
  2788  				if shift >= 64 {
  2789  					return ErrIntOverflowJoinservice
  2790  				}
  2791  				if iNdEx >= l {
  2792  					return io.ErrUnexpectedEOF
  2793  				}
  2794  				b := dAtA[iNdEx]
  2795  				iNdEx++
  2796  				msglen |= int(b&0x7F) << shift
  2797  				if b < 0x80 {
  2798  					break
  2799  				}
  2800  			}
  2801  			if msglen < 0 {
  2802  				return ErrInvalidLengthJoinservice
  2803  			}
  2804  			postIndex := iNdEx + msglen
  2805  			if postIndex < 0 {
  2806  				return ErrInvalidLengthJoinservice
  2807  			}
  2808  			if postIndex > l {
  2809  				return io.ErrUnexpectedEOF
  2810  			}
  2811  			v := &RegisterUsingTPMMethodInitialRequest{}
  2812  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2813  				return err
  2814  			}
  2815  			m.Payload = &RegisterUsingTPMMethodRequest_Init{v}
  2816  			iNdEx = postIndex
  2817  		case 2:
  2818  			if wireType != 2 {
  2819  				return fmt.Errorf("proto: wrong wireType = %d for field ChallengeResponse", wireType)
  2820  			}
  2821  			var msglen int
  2822  			for shift := uint(0); ; shift += 7 {
  2823  				if shift >= 64 {
  2824  					return ErrIntOverflowJoinservice
  2825  				}
  2826  				if iNdEx >= l {
  2827  					return io.ErrUnexpectedEOF
  2828  				}
  2829  				b := dAtA[iNdEx]
  2830  				iNdEx++
  2831  				msglen |= int(b&0x7F) << shift
  2832  				if b < 0x80 {
  2833  					break
  2834  				}
  2835  			}
  2836  			if msglen < 0 {
  2837  				return ErrInvalidLengthJoinservice
  2838  			}
  2839  			postIndex := iNdEx + msglen
  2840  			if postIndex < 0 {
  2841  				return ErrInvalidLengthJoinservice
  2842  			}
  2843  			if postIndex > l {
  2844  				return io.ErrUnexpectedEOF
  2845  			}
  2846  			v := &RegisterUsingTPMMethodChallengeResponse{}
  2847  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2848  				return err
  2849  			}
  2850  			m.Payload = &RegisterUsingTPMMethodRequest_ChallengeResponse{v}
  2851  			iNdEx = postIndex
  2852  		default:
  2853  			iNdEx = preIndex
  2854  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  2855  			if err != nil {
  2856  				return err
  2857  			}
  2858  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2859  				return ErrInvalidLengthJoinservice
  2860  			}
  2861  			if (iNdEx + skippy) > l {
  2862  				return io.ErrUnexpectedEOF
  2863  			}
  2864  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2865  			iNdEx += skippy
  2866  		}
  2867  	}
  2868  
  2869  	if iNdEx > l {
  2870  		return io.ErrUnexpectedEOF
  2871  	}
  2872  	return nil
  2873  }
  2874  func (m *RegisterUsingTPMMethodResponse) Unmarshal(dAtA []byte) error {
  2875  	l := len(dAtA)
  2876  	iNdEx := 0
  2877  	for iNdEx < l {
  2878  		preIndex := iNdEx
  2879  		var wire uint64
  2880  		for shift := uint(0); ; shift += 7 {
  2881  			if shift >= 64 {
  2882  				return ErrIntOverflowJoinservice
  2883  			}
  2884  			if iNdEx >= l {
  2885  				return io.ErrUnexpectedEOF
  2886  			}
  2887  			b := dAtA[iNdEx]
  2888  			iNdEx++
  2889  			wire |= uint64(b&0x7F) << shift
  2890  			if b < 0x80 {
  2891  				break
  2892  			}
  2893  		}
  2894  		fieldNum := int32(wire >> 3)
  2895  		wireType := int(wire & 0x7)
  2896  		if wireType == 4 {
  2897  			return fmt.Errorf("proto: RegisterUsingTPMMethodResponse: wiretype end group for non-group")
  2898  		}
  2899  		if fieldNum <= 0 {
  2900  			return fmt.Errorf("proto: RegisterUsingTPMMethodResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2901  		}
  2902  		switch fieldNum {
  2903  		case 1:
  2904  			if wireType != 2 {
  2905  				return fmt.Errorf("proto: wrong wireType = %d for field ChallengeRequest", wireType)
  2906  			}
  2907  			var msglen int
  2908  			for shift := uint(0); ; shift += 7 {
  2909  				if shift >= 64 {
  2910  					return ErrIntOverflowJoinservice
  2911  				}
  2912  				if iNdEx >= l {
  2913  					return io.ErrUnexpectedEOF
  2914  				}
  2915  				b := dAtA[iNdEx]
  2916  				iNdEx++
  2917  				msglen |= int(b&0x7F) << shift
  2918  				if b < 0x80 {
  2919  					break
  2920  				}
  2921  			}
  2922  			if msglen < 0 {
  2923  				return ErrInvalidLengthJoinservice
  2924  			}
  2925  			postIndex := iNdEx + msglen
  2926  			if postIndex < 0 {
  2927  				return ErrInvalidLengthJoinservice
  2928  			}
  2929  			if postIndex > l {
  2930  				return io.ErrUnexpectedEOF
  2931  			}
  2932  			v := &TPMEncryptedCredential{}
  2933  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2934  				return err
  2935  			}
  2936  			m.Payload = &RegisterUsingTPMMethodResponse_ChallengeRequest{v}
  2937  			iNdEx = postIndex
  2938  		case 2:
  2939  			if wireType != 2 {
  2940  				return fmt.Errorf("proto: wrong wireType = %d for field Certs", wireType)
  2941  			}
  2942  			var msglen int
  2943  			for shift := uint(0); ; shift += 7 {
  2944  				if shift >= 64 {
  2945  					return ErrIntOverflowJoinservice
  2946  				}
  2947  				if iNdEx >= l {
  2948  					return io.ErrUnexpectedEOF
  2949  				}
  2950  				b := dAtA[iNdEx]
  2951  				iNdEx++
  2952  				msglen |= int(b&0x7F) << shift
  2953  				if b < 0x80 {
  2954  					break
  2955  				}
  2956  			}
  2957  			if msglen < 0 {
  2958  				return ErrInvalidLengthJoinservice
  2959  			}
  2960  			postIndex := iNdEx + msglen
  2961  			if postIndex < 0 {
  2962  				return ErrInvalidLengthJoinservice
  2963  			}
  2964  			if postIndex > l {
  2965  				return io.ErrUnexpectedEOF
  2966  			}
  2967  			v := &Certs{}
  2968  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2969  				return err
  2970  			}
  2971  			m.Payload = &RegisterUsingTPMMethodResponse_Certs{v}
  2972  			iNdEx = postIndex
  2973  		default:
  2974  			iNdEx = preIndex
  2975  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  2976  			if err != nil {
  2977  				return err
  2978  			}
  2979  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2980  				return ErrInvalidLengthJoinservice
  2981  			}
  2982  			if (iNdEx + skippy) > l {
  2983  				return io.ErrUnexpectedEOF
  2984  			}
  2985  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2986  			iNdEx += skippy
  2987  		}
  2988  	}
  2989  
  2990  	if iNdEx > l {
  2991  		return io.ErrUnexpectedEOF
  2992  	}
  2993  	return nil
  2994  }
  2995  func (m *TPMAttestationParameters) Unmarshal(dAtA []byte) error {
  2996  	l := len(dAtA)
  2997  	iNdEx := 0
  2998  	for iNdEx < l {
  2999  		preIndex := iNdEx
  3000  		var wire uint64
  3001  		for shift := uint(0); ; shift += 7 {
  3002  			if shift >= 64 {
  3003  				return ErrIntOverflowJoinservice
  3004  			}
  3005  			if iNdEx >= l {
  3006  				return io.ErrUnexpectedEOF
  3007  			}
  3008  			b := dAtA[iNdEx]
  3009  			iNdEx++
  3010  			wire |= uint64(b&0x7F) << shift
  3011  			if b < 0x80 {
  3012  				break
  3013  			}
  3014  		}
  3015  		fieldNum := int32(wire >> 3)
  3016  		wireType := int(wire & 0x7)
  3017  		if wireType == 4 {
  3018  			return fmt.Errorf("proto: TPMAttestationParameters: wiretype end group for non-group")
  3019  		}
  3020  		if fieldNum <= 0 {
  3021  			return fmt.Errorf("proto: TPMAttestationParameters: illegal tag %d (wire type %d)", fieldNum, wire)
  3022  		}
  3023  		switch fieldNum {
  3024  		case 1:
  3025  			if wireType != 2 {
  3026  				return fmt.Errorf("proto: wrong wireType = %d for field Public", wireType)
  3027  			}
  3028  			var byteLen int
  3029  			for shift := uint(0); ; shift += 7 {
  3030  				if shift >= 64 {
  3031  					return ErrIntOverflowJoinservice
  3032  				}
  3033  				if iNdEx >= l {
  3034  					return io.ErrUnexpectedEOF
  3035  				}
  3036  				b := dAtA[iNdEx]
  3037  				iNdEx++
  3038  				byteLen |= int(b&0x7F) << shift
  3039  				if b < 0x80 {
  3040  					break
  3041  				}
  3042  			}
  3043  			if byteLen < 0 {
  3044  				return ErrInvalidLengthJoinservice
  3045  			}
  3046  			postIndex := iNdEx + byteLen
  3047  			if postIndex < 0 {
  3048  				return ErrInvalidLengthJoinservice
  3049  			}
  3050  			if postIndex > l {
  3051  				return io.ErrUnexpectedEOF
  3052  			}
  3053  			m.Public = append(m.Public[:0], dAtA[iNdEx:postIndex]...)
  3054  			if m.Public == nil {
  3055  				m.Public = []byte{}
  3056  			}
  3057  			iNdEx = postIndex
  3058  		case 2:
  3059  			if wireType != 2 {
  3060  				return fmt.Errorf("proto: wrong wireType = %d for field CreateData", wireType)
  3061  			}
  3062  			var byteLen int
  3063  			for shift := uint(0); ; shift += 7 {
  3064  				if shift >= 64 {
  3065  					return ErrIntOverflowJoinservice
  3066  				}
  3067  				if iNdEx >= l {
  3068  					return io.ErrUnexpectedEOF
  3069  				}
  3070  				b := dAtA[iNdEx]
  3071  				iNdEx++
  3072  				byteLen |= int(b&0x7F) << shift
  3073  				if b < 0x80 {
  3074  					break
  3075  				}
  3076  			}
  3077  			if byteLen < 0 {
  3078  				return ErrInvalidLengthJoinservice
  3079  			}
  3080  			postIndex := iNdEx + byteLen
  3081  			if postIndex < 0 {
  3082  				return ErrInvalidLengthJoinservice
  3083  			}
  3084  			if postIndex > l {
  3085  				return io.ErrUnexpectedEOF
  3086  			}
  3087  			m.CreateData = append(m.CreateData[:0], dAtA[iNdEx:postIndex]...)
  3088  			if m.CreateData == nil {
  3089  				m.CreateData = []byte{}
  3090  			}
  3091  			iNdEx = postIndex
  3092  		case 3:
  3093  			if wireType != 2 {
  3094  				return fmt.Errorf("proto: wrong wireType = %d for field CreateAttestation", wireType)
  3095  			}
  3096  			var byteLen int
  3097  			for shift := uint(0); ; shift += 7 {
  3098  				if shift >= 64 {
  3099  					return ErrIntOverflowJoinservice
  3100  				}
  3101  				if iNdEx >= l {
  3102  					return io.ErrUnexpectedEOF
  3103  				}
  3104  				b := dAtA[iNdEx]
  3105  				iNdEx++
  3106  				byteLen |= int(b&0x7F) << shift
  3107  				if b < 0x80 {
  3108  					break
  3109  				}
  3110  			}
  3111  			if byteLen < 0 {
  3112  				return ErrInvalidLengthJoinservice
  3113  			}
  3114  			postIndex := iNdEx + byteLen
  3115  			if postIndex < 0 {
  3116  				return ErrInvalidLengthJoinservice
  3117  			}
  3118  			if postIndex > l {
  3119  				return io.ErrUnexpectedEOF
  3120  			}
  3121  			m.CreateAttestation = append(m.CreateAttestation[:0], dAtA[iNdEx:postIndex]...)
  3122  			if m.CreateAttestation == nil {
  3123  				m.CreateAttestation = []byte{}
  3124  			}
  3125  			iNdEx = postIndex
  3126  		case 4:
  3127  			if wireType != 2 {
  3128  				return fmt.Errorf("proto: wrong wireType = %d for field CreateSignature", wireType)
  3129  			}
  3130  			var byteLen int
  3131  			for shift := uint(0); ; shift += 7 {
  3132  				if shift >= 64 {
  3133  					return ErrIntOverflowJoinservice
  3134  				}
  3135  				if iNdEx >= l {
  3136  					return io.ErrUnexpectedEOF
  3137  				}
  3138  				b := dAtA[iNdEx]
  3139  				iNdEx++
  3140  				byteLen |= int(b&0x7F) << shift
  3141  				if b < 0x80 {
  3142  					break
  3143  				}
  3144  			}
  3145  			if byteLen < 0 {
  3146  				return ErrInvalidLengthJoinservice
  3147  			}
  3148  			postIndex := iNdEx + byteLen
  3149  			if postIndex < 0 {
  3150  				return ErrInvalidLengthJoinservice
  3151  			}
  3152  			if postIndex > l {
  3153  				return io.ErrUnexpectedEOF
  3154  			}
  3155  			m.CreateSignature = append(m.CreateSignature[:0], dAtA[iNdEx:postIndex]...)
  3156  			if m.CreateSignature == nil {
  3157  				m.CreateSignature = []byte{}
  3158  			}
  3159  			iNdEx = postIndex
  3160  		default:
  3161  			iNdEx = preIndex
  3162  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  3163  			if err != nil {
  3164  				return err
  3165  			}
  3166  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3167  				return ErrInvalidLengthJoinservice
  3168  			}
  3169  			if (iNdEx + skippy) > l {
  3170  				return io.ErrUnexpectedEOF
  3171  			}
  3172  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3173  			iNdEx += skippy
  3174  		}
  3175  	}
  3176  
  3177  	if iNdEx > l {
  3178  		return io.ErrUnexpectedEOF
  3179  	}
  3180  	return nil
  3181  }
  3182  func (m *TPMEncryptedCredential) Unmarshal(dAtA []byte) error {
  3183  	l := len(dAtA)
  3184  	iNdEx := 0
  3185  	for iNdEx < l {
  3186  		preIndex := iNdEx
  3187  		var wire uint64
  3188  		for shift := uint(0); ; shift += 7 {
  3189  			if shift >= 64 {
  3190  				return ErrIntOverflowJoinservice
  3191  			}
  3192  			if iNdEx >= l {
  3193  				return io.ErrUnexpectedEOF
  3194  			}
  3195  			b := dAtA[iNdEx]
  3196  			iNdEx++
  3197  			wire |= uint64(b&0x7F) << shift
  3198  			if b < 0x80 {
  3199  				break
  3200  			}
  3201  		}
  3202  		fieldNum := int32(wire >> 3)
  3203  		wireType := int(wire & 0x7)
  3204  		if wireType == 4 {
  3205  			return fmt.Errorf("proto: TPMEncryptedCredential: wiretype end group for non-group")
  3206  		}
  3207  		if fieldNum <= 0 {
  3208  			return fmt.Errorf("proto: TPMEncryptedCredential: illegal tag %d (wire type %d)", fieldNum, wire)
  3209  		}
  3210  		switch fieldNum {
  3211  		case 1:
  3212  			if wireType != 2 {
  3213  				return fmt.Errorf("proto: wrong wireType = %d for field CredentialBlob", wireType)
  3214  			}
  3215  			var byteLen int
  3216  			for shift := uint(0); ; shift += 7 {
  3217  				if shift >= 64 {
  3218  					return ErrIntOverflowJoinservice
  3219  				}
  3220  				if iNdEx >= l {
  3221  					return io.ErrUnexpectedEOF
  3222  				}
  3223  				b := dAtA[iNdEx]
  3224  				iNdEx++
  3225  				byteLen |= int(b&0x7F) << shift
  3226  				if b < 0x80 {
  3227  					break
  3228  				}
  3229  			}
  3230  			if byteLen < 0 {
  3231  				return ErrInvalidLengthJoinservice
  3232  			}
  3233  			postIndex := iNdEx + byteLen
  3234  			if postIndex < 0 {
  3235  				return ErrInvalidLengthJoinservice
  3236  			}
  3237  			if postIndex > l {
  3238  				return io.ErrUnexpectedEOF
  3239  			}
  3240  			m.CredentialBlob = append(m.CredentialBlob[:0], dAtA[iNdEx:postIndex]...)
  3241  			if m.CredentialBlob == nil {
  3242  				m.CredentialBlob = []byte{}
  3243  			}
  3244  			iNdEx = postIndex
  3245  		case 2:
  3246  			if wireType != 2 {
  3247  				return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType)
  3248  			}
  3249  			var byteLen int
  3250  			for shift := uint(0); ; shift += 7 {
  3251  				if shift >= 64 {
  3252  					return ErrIntOverflowJoinservice
  3253  				}
  3254  				if iNdEx >= l {
  3255  					return io.ErrUnexpectedEOF
  3256  				}
  3257  				b := dAtA[iNdEx]
  3258  				iNdEx++
  3259  				byteLen |= int(b&0x7F) << shift
  3260  				if b < 0x80 {
  3261  					break
  3262  				}
  3263  			}
  3264  			if byteLen < 0 {
  3265  				return ErrInvalidLengthJoinservice
  3266  			}
  3267  			postIndex := iNdEx + byteLen
  3268  			if postIndex < 0 {
  3269  				return ErrInvalidLengthJoinservice
  3270  			}
  3271  			if postIndex > l {
  3272  				return io.ErrUnexpectedEOF
  3273  			}
  3274  			m.Secret = append(m.Secret[:0], dAtA[iNdEx:postIndex]...)
  3275  			if m.Secret == nil {
  3276  				m.Secret = []byte{}
  3277  			}
  3278  			iNdEx = postIndex
  3279  		default:
  3280  			iNdEx = preIndex
  3281  			skippy, err := skipJoinservice(dAtA[iNdEx:])
  3282  			if err != nil {
  3283  				return err
  3284  			}
  3285  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3286  				return ErrInvalidLengthJoinservice
  3287  			}
  3288  			if (iNdEx + skippy) > l {
  3289  				return io.ErrUnexpectedEOF
  3290  			}
  3291  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3292  			iNdEx += skippy
  3293  		}
  3294  	}
  3295  
  3296  	if iNdEx > l {
  3297  		return io.ErrUnexpectedEOF
  3298  	}
  3299  	return nil
  3300  }
  3301  func skipJoinservice(dAtA []byte) (n int, err error) {
  3302  	l := len(dAtA)
  3303  	iNdEx := 0
  3304  	depth := 0
  3305  	for iNdEx < l {
  3306  		var wire uint64
  3307  		for shift := uint(0); ; shift += 7 {
  3308  			if shift >= 64 {
  3309  				return 0, ErrIntOverflowJoinservice
  3310  			}
  3311  			if iNdEx >= l {
  3312  				return 0, io.ErrUnexpectedEOF
  3313  			}
  3314  			b := dAtA[iNdEx]
  3315  			iNdEx++
  3316  			wire |= (uint64(b) & 0x7F) << shift
  3317  			if b < 0x80 {
  3318  				break
  3319  			}
  3320  		}
  3321  		wireType := int(wire & 0x7)
  3322  		switch wireType {
  3323  		case 0:
  3324  			for shift := uint(0); ; shift += 7 {
  3325  				if shift >= 64 {
  3326  					return 0, ErrIntOverflowJoinservice
  3327  				}
  3328  				if iNdEx >= l {
  3329  					return 0, io.ErrUnexpectedEOF
  3330  				}
  3331  				iNdEx++
  3332  				if dAtA[iNdEx-1] < 0x80 {
  3333  					break
  3334  				}
  3335  			}
  3336  		case 1:
  3337  			iNdEx += 8
  3338  		case 2:
  3339  			var length int
  3340  			for shift := uint(0); ; shift += 7 {
  3341  				if shift >= 64 {
  3342  					return 0, ErrIntOverflowJoinservice
  3343  				}
  3344  				if iNdEx >= l {
  3345  					return 0, io.ErrUnexpectedEOF
  3346  				}
  3347  				b := dAtA[iNdEx]
  3348  				iNdEx++
  3349  				length |= (int(b) & 0x7F) << shift
  3350  				if b < 0x80 {
  3351  					break
  3352  				}
  3353  			}
  3354  			if length < 0 {
  3355  				return 0, ErrInvalidLengthJoinservice
  3356  			}
  3357  			iNdEx += length
  3358  		case 3:
  3359  			depth++
  3360  		case 4:
  3361  			if depth == 0 {
  3362  				return 0, ErrUnexpectedEndOfGroupJoinservice
  3363  			}
  3364  			depth--
  3365  		case 5:
  3366  			iNdEx += 4
  3367  		default:
  3368  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3369  		}
  3370  		if iNdEx < 0 {
  3371  			return 0, ErrInvalidLengthJoinservice
  3372  		}
  3373  		if depth == 0 {
  3374  			return iNdEx, nil
  3375  		}
  3376  	}
  3377  	return 0, io.ErrUnexpectedEOF
  3378  }
  3379  
  3380  var (
  3381  	ErrInvalidLengthJoinservice        = fmt.Errorf("proto: negative length found during unmarshaling")
  3382  	ErrIntOverflowJoinservice          = fmt.Errorf("proto: integer overflow")
  3383  	ErrUnexpectedEndOfGroupJoinservice = fmt.Errorf("proto: unexpected end of group")
  3384  )