key.pbext.go raw

   1  // Code generated by protoc-gen-goext. DO NOT EDIT.
   2  
   3  package iam
   4  
   5  import (
   6  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
   7  )
   8  
   9  type Key_Subject = isKey_Subject
  10  
  11  func (m *Key) SetSubject(v Key_Subject) {
  12  	m.Subject = v
  13  }
  14  
  15  func (m *Key) SetId(v string) {
  16  	m.Id = v
  17  }
  18  
  19  func (m *Key) SetUserAccountId(v string) {
  20  	m.Subject = &Key_UserAccountId{
  21  		UserAccountId: v,
  22  	}
  23  }
  24  
  25  func (m *Key) SetServiceAccountId(v string) {
  26  	m.Subject = &Key_ServiceAccountId{
  27  		ServiceAccountId: v,
  28  	}
  29  }
  30  
  31  func (m *Key) SetCreatedAt(v *timestamppb.Timestamp) {
  32  	m.CreatedAt = v
  33  }
  34  
  35  func (m *Key) SetDescription(v string) {
  36  	m.Description = v
  37  }
  38  
  39  func (m *Key) SetKeyAlgorithm(v Key_Algorithm) {
  40  	m.KeyAlgorithm = v
  41  }
  42  
  43  func (m *Key) SetPublicKey(v string) {
  44  	m.PublicKey = v
  45  }
  46  
  47  func (m *Key) SetLastUsedAt(v *timestamppb.Timestamp) {
  48  	m.LastUsedAt = v
  49  }
  50