go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/auth/delegation/messages/delegation.pb.go (about)

     1  // Copyright 2015 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  // This file is copied from luci-py.git:
     6  // appengine/components/components/auth/proto/delegation.proto
     7  // Commit: f615e7592619691fe9fa64997880e2490072db21
     8  //
     9  // Changes: renamed package to 'messages'.
    10  
    11  // Code generated by protoc-gen-go. DO NOT EDIT.
    12  // versions:
    13  // 	protoc-gen-go v1.31.0
    14  // 	protoc        v3.21.7
    15  // source: go.chromium.org/luci/server/auth/delegation/messages/delegation.proto
    16  
    17  package messages
    18  
    19  import (
    20  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    21  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    22  	reflect "reflect"
    23  	sync "sync"
    24  )
    25  
    26  const (
    27  	// Verify that this generated code is sufficiently up-to-date.
    28  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    29  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    30  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    31  )
    32  
    33  type Subtoken_Kind int32
    34  
    35  const (
    36  	// This is to catch old tokens that don't have 'kind' field yet.
    37  	//
    38  	// Tokens of this kind are interpreted as 'BEARER_DELEGATION_TOKEN' for now,
    39  	// for compatibility. But eventually (when all backends are updated), they
    40  	// will become invalid (and there will be no way to generate them). This is
    41  	// needed to avoid old servers accidentally interpret tokens of kind != 0 as
    42  	// BEARER_DELEGATION_TOKEN tokens.
    43  	Subtoken_UNKNOWN_KIND Subtoken_Kind = 0
    44  	// The token of this kind can be sent in X-Delegation-Token-V1 HTTP header.
    45  	// The services will check all restrictions of the token, and will
    46  	// authenticate requests as coming from 'delegated_identity'.
    47  	Subtoken_BEARER_DELEGATION_TOKEN Subtoken_Kind = 1
    48  )
    49  
    50  // Enum value maps for Subtoken_Kind.
    51  var (
    52  	Subtoken_Kind_name = map[int32]string{
    53  		0: "UNKNOWN_KIND",
    54  		1: "BEARER_DELEGATION_TOKEN",
    55  	}
    56  	Subtoken_Kind_value = map[string]int32{
    57  		"UNKNOWN_KIND":            0,
    58  		"BEARER_DELEGATION_TOKEN": 1,
    59  	}
    60  )
    61  
    62  func (x Subtoken_Kind) Enum() *Subtoken_Kind {
    63  	p := new(Subtoken_Kind)
    64  	*p = x
    65  	return p
    66  }
    67  
    68  func (x Subtoken_Kind) String() string {
    69  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    70  }
    71  
    72  func (Subtoken_Kind) Descriptor() protoreflect.EnumDescriptor {
    73  	return file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_enumTypes[0].Descriptor()
    74  }
    75  
    76  func (Subtoken_Kind) Type() protoreflect.EnumType {
    77  	return &file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_enumTypes[0]
    78  }
    79  
    80  func (x Subtoken_Kind) Number() protoreflect.EnumNumber {
    81  	return protoreflect.EnumNumber(x)
    82  }
    83  
    84  // Deprecated: Use Subtoken_Kind.Descriptor instead.
    85  func (Subtoken_Kind) EnumDescriptor() ([]byte, []int) {
    86  	return file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescGZIP(), []int{1, 0}
    87  }
    88  
    89  // Signed serialized Subtoken.
    90  //
    91  // This message is just an envelope that carries the serialized Subtoken message
    92  // and its signature.
    93  //
    94  // Next ID: 6.
    95  type DelegationToken struct {
    96  	state         protoimpl.MessageState
    97  	sizeCache     protoimpl.SizeCache
    98  	unknownFields protoimpl.UnknownFields
    99  
   100  	// Identity of a service that signed this token.
   101  	//
   102  	// It can be a 'service:<app-id>' string or 'user:<service-account-email>'
   103  	// string.
   104  	//
   105  	// In both cases the appropriate certificate store will be queried (via SSL)
   106  	// for the public key to use for signature verification.
   107  	SignerId string `protobuf:"bytes,2,opt,name=signer_id,json=signerId,proto3" json:"signer_id,omitempty"`
   108  	// ID of a key used for making the signature.
   109  	//
   110  	// There can be multiple active keys at any moment in time: one used for new
   111  	// signatures, and one being rotated out (but still valid for verification).
   112  	//
   113  	// The lifetime of the token indirectly depends on the lifetime of the signing
   114  	// key, which is 24h. So delegation tokens can't live longer than 24h.
   115  	SigningKeyId string `protobuf:"bytes,3,opt,name=signing_key_id,json=signingKeyId,proto3" json:"signing_key_id,omitempty"`
   116  	// The signature: PKCS1_v1_5+SHA256(serialized_subtoken, signing_key_id).
   117  	Pkcs1Sha256Sig []byte `protobuf:"bytes,4,opt,name=pkcs1_sha256_sig,json=pkcs1Sha256Sig,proto3" json:"pkcs1_sha256_sig,omitempty"`
   118  	// Serialized Subtoken message. It's signature is stored in pkcs1_sha256_sig.
   119  	SerializedSubtoken []byte `protobuf:"bytes,5,opt,name=serialized_subtoken,json=serializedSubtoken,proto3" json:"serialized_subtoken,omitempty"`
   120  }
   121  
   122  func (x *DelegationToken) Reset() {
   123  	*x = DelegationToken{}
   124  	if protoimpl.UnsafeEnabled {
   125  		mi := &file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_msgTypes[0]
   126  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   127  		ms.StoreMessageInfo(mi)
   128  	}
   129  }
   130  
   131  func (x *DelegationToken) String() string {
   132  	return protoimpl.X.MessageStringOf(x)
   133  }
   134  
   135  func (*DelegationToken) ProtoMessage() {}
   136  
   137  func (x *DelegationToken) ProtoReflect() protoreflect.Message {
   138  	mi := &file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_msgTypes[0]
   139  	if protoimpl.UnsafeEnabled && x != nil {
   140  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   141  		if ms.LoadMessageInfo() == nil {
   142  			ms.StoreMessageInfo(mi)
   143  		}
   144  		return ms
   145  	}
   146  	return mi.MessageOf(x)
   147  }
   148  
   149  // Deprecated: Use DelegationToken.ProtoReflect.Descriptor instead.
   150  func (*DelegationToken) Descriptor() ([]byte, []int) {
   151  	return file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescGZIP(), []int{0}
   152  }
   153  
   154  func (x *DelegationToken) GetSignerId() string {
   155  	if x != nil {
   156  		return x.SignerId
   157  	}
   158  	return ""
   159  }
   160  
   161  func (x *DelegationToken) GetSigningKeyId() string {
   162  	if x != nil {
   163  		return x.SigningKeyId
   164  	}
   165  	return ""
   166  }
   167  
   168  func (x *DelegationToken) GetPkcs1Sha256Sig() []byte {
   169  	if x != nil {
   170  		return x.Pkcs1Sha256Sig
   171  	}
   172  	return nil
   173  }
   174  
   175  func (x *DelegationToken) GetSerializedSubtoken() []byte {
   176  	if x != nil {
   177  		return x.SerializedSubtoken
   178  	}
   179  	return nil
   180  }
   181  
   182  // Identifies who delegates what authority to whom where.
   183  //
   184  // Next ID: 10.
   185  type Subtoken struct {
   186  	state         protoimpl.MessageState
   187  	sizeCache     protoimpl.SizeCache
   188  	unknownFields protoimpl.UnknownFields
   189  
   190  	// What kind of token is this.
   191  	//
   192  	// Defines how it can be used. See comments for Kind enum.
   193  	Kind Subtoken_Kind `protobuf:"varint,8,opt,name=kind,proto3,enum=messages.Subtoken_Kind" json:"kind,omitempty"`
   194  	// Identifier of this subtoken as generated by the token server.
   195  	//
   196  	// Used for logging and tracking purposes.
   197  	SubtokenId int64 `protobuf:"varint,4,opt,name=subtoken_id,json=subtokenId,proto3" json:"subtoken_id,omitempty"`
   198  	// Identity whose authority is delegated.
   199  	//
   200  	// A string of the form "user:<email>".
   201  	DelegatedIdentity string `protobuf:"bytes,1,opt,name=delegated_identity,json=delegatedIdentity,proto3" json:"delegated_identity,omitempty"`
   202  	// Who requested this token.
   203  	//
   204  	// This can match delegated_identity if the user is delegating their own
   205  	// identity or it can be a different id if the token is actually
   206  	// an impersonation token.
   207  	RequestorIdentity string `protobuf:"bytes,7,opt,name=requestor_identity,json=requestorIdentity,proto3" json:"requestor_identity,omitempty"`
   208  	// When the token was generated (and when it becomes valid).
   209  	//
   210  	// Number of seconds since epoch (Unix timestamp).
   211  	CreationTime int64 `protobuf:"varint,2,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
   212  	// How long the token is considered valid (in seconds).
   213  	ValidityDuration int32 `protobuf:"varint,3,opt,name=validity_duration,json=validityDuration,proto3" json:"validity_duration,omitempty"`
   214  	// Who can present this token.
   215  	//
   216  	// Each item can be an identity string (e.g. "user:<email>"), a "group:<name>"
   217  	// string, or special "*" string which means "Any bearer can use the token".
   218  	Audience []string `protobuf:"bytes,5,rep,name=audience,proto3" json:"audience,omitempty"`
   219  	// What services should accept this token.
   220  	//
   221  	// List of services (specified as service identities, e.g. "service:app-id")
   222  	// that should accept this token. May also contain special "*" string, which
   223  	// means "All services".
   224  	Services []string `protobuf:"bytes,6,rep,name=services,proto3" json:"services,omitempty"`
   225  	// Arbitrary key:value pairs embedded into the token by whoever requested it.
   226  	// Convey circumstance of why the token is created.
   227  	//
   228  	// Services that accept the token may use them for additional authorization
   229  	// decisions. Please use extremely carefully, only when you control both sides
   230  	// of the delegation link and can guarantee that services involved understand
   231  	// the tags.
   232  	Tags []string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
   233  }
   234  
   235  func (x *Subtoken) Reset() {
   236  	*x = Subtoken{}
   237  	if protoimpl.UnsafeEnabled {
   238  		mi := &file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_msgTypes[1]
   239  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   240  		ms.StoreMessageInfo(mi)
   241  	}
   242  }
   243  
   244  func (x *Subtoken) String() string {
   245  	return protoimpl.X.MessageStringOf(x)
   246  }
   247  
   248  func (*Subtoken) ProtoMessage() {}
   249  
   250  func (x *Subtoken) ProtoReflect() protoreflect.Message {
   251  	mi := &file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_msgTypes[1]
   252  	if protoimpl.UnsafeEnabled && x != nil {
   253  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   254  		if ms.LoadMessageInfo() == nil {
   255  			ms.StoreMessageInfo(mi)
   256  		}
   257  		return ms
   258  	}
   259  	return mi.MessageOf(x)
   260  }
   261  
   262  // Deprecated: Use Subtoken.ProtoReflect.Descriptor instead.
   263  func (*Subtoken) Descriptor() ([]byte, []int) {
   264  	return file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescGZIP(), []int{1}
   265  }
   266  
   267  func (x *Subtoken) GetKind() Subtoken_Kind {
   268  	if x != nil {
   269  		return x.Kind
   270  	}
   271  	return Subtoken_UNKNOWN_KIND
   272  }
   273  
   274  func (x *Subtoken) GetSubtokenId() int64 {
   275  	if x != nil {
   276  		return x.SubtokenId
   277  	}
   278  	return 0
   279  }
   280  
   281  func (x *Subtoken) GetDelegatedIdentity() string {
   282  	if x != nil {
   283  		return x.DelegatedIdentity
   284  	}
   285  	return ""
   286  }
   287  
   288  func (x *Subtoken) GetRequestorIdentity() string {
   289  	if x != nil {
   290  		return x.RequestorIdentity
   291  	}
   292  	return ""
   293  }
   294  
   295  func (x *Subtoken) GetCreationTime() int64 {
   296  	if x != nil {
   297  		return x.CreationTime
   298  	}
   299  	return 0
   300  }
   301  
   302  func (x *Subtoken) GetValidityDuration() int32 {
   303  	if x != nil {
   304  		return x.ValidityDuration
   305  	}
   306  	return 0
   307  }
   308  
   309  func (x *Subtoken) GetAudience() []string {
   310  	if x != nil {
   311  		return x.Audience
   312  	}
   313  	return nil
   314  }
   315  
   316  func (x *Subtoken) GetServices() []string {
   317  	if x != nil {
   318  		return x.Services
   319  	}
   320  	return nil
   321  }
   322  
   323  func (x *Subtoken) GetTags() []string {
   324  	if x != nil {
   325  		return x.Tags
   326  	}
   327  	return nil
   328  }
   329  
   330  var File_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto protoreflect.FileDescriptor
   331  
   332  var file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDesc = []byte{
   333  	0x0a, 0x45, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   334  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x61, 0x75,
   335  	0x74, 0x68, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x65,
   336  	0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f,
   337  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
   338  	0x73, 0x22, 0xb5, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   339  	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x5f,
   340  	0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72,
   341  	0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x6b, 0x65,
   342  	0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x69, 0x67, 0x6e,
   343  	0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x6b, 0x63, 0x73,
   344  	0x31, 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01,
   345  	0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6b, 0x63, 0x73, 0x31, 0x53, 0x68, 0x61, 0x32, 0x35, 0x36, 0x53,
   346  	0x69, 0x67, 0x12, 0x2f, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64,
   347  	0x5f, 0x73, 0x75, 0x62, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52,
   348  	0x12, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x53, 0x75, 0x62, 0x74, 0x6f,
   349  	0x6b, 0x65, 0x6e, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x8b, 0x03, 0x0a, 0x08, 0x53, 0x75,
   350  	0x62, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x08,
   351  	0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e,
   352  	0x53, 0x75, 0x62, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b,
   353  	0x69, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f,
   354  	0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x74, 0x6f, 0x6b,
   355  	0x65, 0x6e, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65,
   356  	0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   357  	0x52, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74,
   358  	0x69, 0x74, 0x79, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, 0x72,
   359  	0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
   360  	0x11, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
   361  	0x74, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74,
   362  	0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74,
   363  	0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64,
   364  	0x69, 0x74, 0x79, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
   365  	0x28, 0x05, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x44, 0x75, 0x72, 0x61,
   366  	0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65,
   367  	0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65,
   368  	0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03,
   369  	0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04,
   370  	0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73,
   371  	0x22, 0x35, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, 0x4b, 0x4e,
   372  	0x4f, 0x57, 0x4e, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x45,
   373  	0x41, 0x52, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
   374  	0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68,
   375  	0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f,
   376  	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x64, 0x65, 0x6c, 0x65,
   377  	0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x62,
   378  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   379  }
   380  
   381  var (
   382  	file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescOnce sync.Once
   383  	file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescData = file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDesc
   384  )
   385  
   386  func file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescGZIP() []byte {
   387  	file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescOnce.Do(func() {
   388  		file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescData)
   389  	})
   390  	return file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDescData
   391  }
   392  
   393  var file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   394  var file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   395  var file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_goTypes = []interface{}{
   396  	(Subtoken_Kind)(0),      // 0: messages.Subtoken.Kind
   397  	(*DelegationToken)(nil), // 1: messages.DelegationToken
   398  	(*Subtoken)(nil),        // 2: messages.Subtoken
   399  }
   400  var file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_depIdxs = []int32{
   401  	0, // 0: messages.Subtoken.kind:type_name -> messages.Subtoken.Kind
   402  	1, // [1:1] is the sub-list for method output_type
   403  	1, // [1:1] is the sub-list for method input_type
   404  	1, // [1:1] is the sub-list for extension type_name
   405  	1, // [1:1] is the sub-list for extension extendee
   406  	0, // [0:1] is the sub-list for field type_name
   407  }
   408  
   409  func init() { file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_init() }
   410  func file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_init() {
   411  	if File_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto != nil {
   412  		return
   413  	}
   414  	if !protoimpl.UnsafeEnabled {
   415  		file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   416  			switch v := v.(*DelegationToken); i {
   417  			case 0:
   418  				return &v.state
   419  			case 1:
   420  				return &v.sizeCache
   421  			case 2:
   422  				return &v.unknownFields
   423  			default:
   424  				return nil
   425  			}
   426  		}
   427  		file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   428  			switch v := v.(*Subtoken); i {
   429  			case 0:
   430  				return &v.state
   431  			case 1:
   432  				return &v.sizeCache
   433  			case 2:
   434  				return &v.unknownFields
   435  			default:
   436  				return nil
   437  			}
   438  		}
   439  	}
   440  	type x struct{}
   441  	out := protoimpl.TypeBuilder{
   442  		File: protoimpl.DescBuilder{
   443  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   444  			RawDescriptor: file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDesc,
   445  			NumEnums:      1,
   446  			NumMessages:   2,
   447  			NumExtensions: 0,
   448  			NumServices:   0,
   449  		},
   450  		GoTypes:           file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_goTypes,
   451  		DependencyIndexes: file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_depIdxs,
   452  		EnumInfos:         file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_enumTypes,
   453  		MessageInfos:      file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_msgTypes,
   454  	}.Build()
   455  	File_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto = out.File
   456  	file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_rawDesc = nil
   457  	file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_goTypes = nil
   458  	file_go_chromium_org_luci_server_auth_delegation_messages_delegation_proto_depIdxs = nil
   459  }