@ -26,7 +26,7 @@ type Credential struct {
unknownFields protoimpl . UnknownFields
// Types that are assignable to Credential:
// *Credential_User Password
// *Credential_User name Password
Credential isCredential_Credential ` protobuf_oneof:"credential" `
}
@ -69,9 +69,9 @@ func (m *Credential) GetCredential() isCredential_Credential {
return nil
}
func ( x * Credential ) GetUser Password( ) * User Password {
if x , ok := x . GetCredential ( ) . ( * Credential_User Password) ; ok {
return x . User Password
func ( x * Credential ) GetUser name Password( ) * User name Password {
if x , ok := x . GetCredential ( ) . ( * Credential_User name Password) ; ok {
return x . User name Password
}
return nil
}
@ -80,14 +80,14 @@ type isCredential_Credential interface {
isCredential_Credential ( )
}
type Credential_User Password struct {
User Password * UserPassword ` protobuf:"bytes,1,opt,name=user_password,json=user Password,proto3,oneof"`
type Credential_User name Password struct {
User namePassword * UsernamePassword ` protobuf:"bytes,2,opt,name=username_password,json=username Password,proto3,oneof"`
}
func ( * Credential_User Password) isCredential_Credential ( ) { }
func ( * Credential_User name Password) isCredential_Credential ( ) { }
// User Password is a credential containing a username and a password.
type User Password struct {
// User name Password is a credential containing a username and a password.
type User name Password struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
@ -98,8 +98,8 @@ type UserPassword struct {
Password string ` protobuf:"bytes,20,opt,name=password,proto3" json:"password,omitempty" ` // @gotags: `class:"secret"`
}
func ( x * User Password) Reset ( ) {
* x = User Password{ }
func ( x * User name Password) Reset ( ) {
* x = User name Password{ }
if protoimpl . UnsafeEnabled {
mi := & file_controller_servers_services_v1_credential_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
@ -107,13 +107,13 @@ func (x *UserPassword) Reset() {
}
}
func ( x * User Password) String ( ) string {
func ( x * User name Password) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * User Password) ProtoMessage ( ) { }
func ( * User name Password) ProtoMessage ( ) { }
func ( x * User Password) ProtoReflect ( ) protoreflect . Message {
func ( x * User name Password) ProtoReflect ( ) protoreflect . Message {
mi := & file_controller_servers_services_v1_credential_proto_msgTypes [ 1 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
@ -125,19 +125,19 @@ func (x *UserPassword) ProtoReflect() protoreflect.Message {
return mi . MessageOf ( x )
}
// Deprecated: Use User Password.ProtoReflect.Descriptor instead.
func ( * User Password) Descriptor ( ) ( [ ] byte , [ ] int ) {
// Deprecated: Use User name Password.ProtoReflect.Descriptor instead.
func ( * User name Password) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_controller_servers_services_v1_credential_proto_rawDescGZIP ( ) , [ ] int { 1 }
}
func ( x * User Password) GetUsername ( ) string {
func ( x * User name Password) GetUsername ( ) string {
if x != nil {
return x . Username
}
return ""
}
func ( x * User Password) GetPassword ( ) string {
func ( x * User name Password) GetPassword ( ) string {
if x != nil {
return x . Password
}
@ -152,24 +152,26 @@ var file_controller_servers_services_v1_credential_proto_rawDesc = []byte{
0x2f , 0x63 , 0x72 , 0x65 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x61 , 0x6c , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 ,
0x6f , 0x12 , 0x1e , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x2e , 0x73 , 0x65 ,
0x72 , 0x76 , 0x65 , 0x72 , 0x73 , 0x2e , 0x73 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x73 , 0x2e , 0x76 ,
0x31 , 0x22 , 0x6f , 0x0a , 0x0a , 0x43 , 0x72 , 0x65 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x61 , 0x6c , 0x12 ,
0x53 , 0x0a , 0x0d , 0x75 , 0x73 , 0x65 , 0x72 , 0x5f , 0x70 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f , 0x72 , 0x64 ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x2c , 0x2e , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c ,
0x6c , 0x65 , 0x72 , 0x2e , 0x73 , 0x65 , 0x72 , 0x76 , 0x65 , 0x72 , 0x73 , 0x2e , 0x73 , 0x65 , 0x72 , 0x76 ,
0x69 , 0x63 , 0x65 , 0x73 , 0x2e , 0x76 , 0x31 , 0x2e , 0x55 , 0x73 , 0x65 , 0x72 , 0x50 , 0x61 , 0x73 , 0x73 ,
0x77 , 0x6f , 0x72 , 0x64 , 0x48 , 0x00 , 0x52 , 0x0c , 0x75 , 0x73 , 0x65 , 0x72 , 0x50 , 0x61 , 0x73 , 0x73 ,
0x77 , 0x6f , 0x72 , 0x64 , 0x42 , 0x0c , 0x0a , 0x0a , 0x63 , 0x72 , 0x65 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 ,
0x61 , 0x6c , 0x22 , 0x46 , 0x0a , 0x0c , 0x55 , 0x73 , 0x65 , 0x72 , 0x50 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f ,
0x72 , 0x64 , 0x12 , 0x1a , 0x0a , 0x08 , 0x75 , 0x73 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6d , 0x65 , 0x18 , 0x0a ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x75 , 0x73 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6d , 0x65 , 0x12 , 0x1a ,
0x0a , 0x08 , 0x70 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f , 0x72 , 0x64 , 0x18 , 0x14 , 0x20 , 0x01 , 0x28 , 0x09 ,
0x52 , 0x08 , 0x70 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f , 0x72 , 0x64 , 0x42 , 0x51 , 0x5a , 0x4f , 0x67 , 0x69 ,
0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x68 , 0x61 , 0x73 , 0x68 , 0x69 , 0x63 , 0x6f ,
0x72 , 0x70 , 0x2f , 0x62 , 0x6f , 0x75 , 0x6e , 0x64 , 0x61 , 0x72 , 0x79 , 0x2f , 0x69 , 0x6e , 0x74 , 0x65 ,
0x72 , 0x6e , 0x61 , 0x6c , 0x2f , 0x67 , 0x65 , 0x6e , 0x2f , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c ,
0x6c , 0x65 , 0x72 , 0x2f , 0x73 , 0x65 , 0x72 , 0x76 , 0x65 , 0x72 , 0x73 , 0x2f , 0x73 , 0x65 , 0x72 , 0x76 ,
0x69 , 0x63 , 0x65 , 0x73 , 0x3b , 0x73 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x73 , 0x62 , 0x06 , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
0x31 , 0x22 , 0x90 , 0x01 , 0x0a , 0x0a , 0x43 , 0x72 , 0x65 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x61 , 0x6c ,
0x12 , 0x5f , 0x0a , 0x11 , 0x75 , 0x73 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6d , 0x65 , 0x5f , 0x70 , 0x61 , 0x73 ,
0x73 , 0x77 , 0x6f , 0x72 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x30 , 0x2e , 0x63 , 0x6f ,
0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x2e , 0x73 , 0x65 , 0x72 , 0x76 , 0x65 , 0x72 , 0x73 ,
0x2e , 0x73 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x73 , 0x2e , 0x76 , 0x31 , 0x2e , 0x55 , 0x73 , 0x65 ,
0x72 , 0x6e , 0x61 , 0x6d , 0x65 , 0x50 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f , 0x72 , 0x64 , 0x48 , 0x00 , 0x52 ,
0x10 , 0x75 , 0x73 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6d , 0x65 , 0x50 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f , 0x72 ,
0x64 , 0x42 , 0x0c , 0x0a , 0x0a , 0x63 , 0x72 , 0x65 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x61 , 0x6c , 0x4a ,
0x04 , 0x08 , 0x01 , 0x10 , 0x02 , 0x52 , 0x0d , 0x75 , 0x73 , 0x65 , 0x72 , 0x5f , 0x70 , 0x61 , 0x73 , 0x73 ,
0x77 , 0x6f , 0x72 , 0x64 , 0x22 , 0x4a , 0x0a , 0x10 , 0x55 , 0x73 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6d , 0x65 ,
0x50 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f , 0x72 , 0x64 , 0x12 , 0x1a , 0x0a , 0x08 , 0x75 , 0x73 , 0x65 , 0x72 ,
0x6e , 0x61 , 0x6d , 0x65 , 0x18 , 0x0a , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x75 , 0x73 , 0x65 , 0x72 ,
0x6e , 0x61 , 0x6d , 0x65 , 0x12 , 0x1a , 0x0a , 0x08 , 0x70 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f , 0x72 , 0x64 ,
0x18 , 0x14 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x70 , 0x61 , 0x73 , 0x73 , 0x77 , 0x6f , 0x72 , 0x64 ,
0x42 , 0x51 , 0x5a , 0x4f , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x68 ,
0x61 , 0x73 , 0x68 , 0x69 , 0x63 , 0x6f , 0x72 , 0x70 , 0x2f , 0x62 , 0x6f , 0x75 , 0x6e , 0x64 , 0x61 , 0x72 ,
0x79 , 0x2f , 0x69 , 0x6e , 0x74 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6c , 0x2f , 0x67 , 0x65 , 0x6e , 0x2f , 0x63 ,
0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x2f , 0x73 , 0x65 , 0x72 , 0x76 , 0x65 , 0x72 ,
0x73 , 0x2f , 0x73 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x73 , 0x3b , 0x73 , 0x65 , 0x72 , 0x76 , 0x69 ,
0x63 , 0x65 , 0x73 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
@ -186,11 +188,11 @@ func file_controller_servers_services_v1_credential_proto_rawDescGZIP() []byte {
var file_controller_servers_services_v1_credential_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 2 )
var file_controller_servers_services_v1_credential_proto_goTypes = [ ] interface { } {
( * Credential ) ( nil ) , // 0: controller.servers.services.v1.Credential
( * User Password) ( nil ) , // 1: controller.servers.services.v1.User Password
( * Credential ) ( nil ) , // 0: controller.servers.services.v1.Credential
( * User name Password) ( nil ) , // 1: controller.servers.services.v1.User name Password
}
var file_controller_servers_services_v1_credential_proto_depIdxs = [ ] int32 {
1 , // 0: controller.servers.services.v1.Credential.user _password:type_name -> controller.servers.services.v1.UserPassword
1 , // 0: controller.servers.services.v1.Credential.user name _password:type_name -> controller.servers.services.v1.Username Password
1 , // [1:1] is the sub-list for method output_type
1 , // [1:1] is the sub-list for method input_type
1 , // [1:1] is the sub-list for extension type_name
@ -217,7 +219,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
}
}
file_controller_servers_services_v1_credential_proto_msgTypes [ 1 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * User Password) ; i {
switch v := v . ( * User name Password) ; i {
case 0 :
return & v . state
case 1 :
@ -230,7 +232,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
}
}
file_controller_servers_services_v1_credential_proto_msgTypes [ 0 ] . OneofWrappers = [ ] interface { } {
( * Credential_User Password) ( nil ) ,
( * Credential_User name Password) ( nil ) ,
}
type x struct { }
out := protoimpl . TypeBuilder {