github.com/MetalBlockchain/metalgo@v1.11.9/proto/pb/keystore/keystore.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.33.0
     4  // 	protoc        (unknown)
     5  // source: keystore/keystore.proto
     6  
     7  package keystore
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type GetDatabaseRequest struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
    29  	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    30  }
    31  
    32  func (x *GetDatabaseRequest) Reset() {
    33  	*x = GetDatabaseRequest{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_keystore_keystore_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *GetDatabaseRequest) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*GetDatabaseRequest) ProtoMessage() {}
    46  
    47  func (x *GetDatabaseRequest) ProtoReflect() protoreflect.Message {
    48  	mi := &file_keystore_keystore_proto_msgTypes[0]
    49  	if protoimpl.UnsafeEnabled && x != nil {
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		if ms.LoadMessageInfo() == nil {
    52  			ms.StoreMessageInfo(mi)
    53  		}
    54  		return ms
    55  	}
    56  	return mi.MessageOf(x)
    57  }
    58  
    59  // Deprecated: Use GetDatabaseRequest.ProtoReflect.Descriptor instead.
    60  func (*GetDatabaseRequest) Descriptor() ([]byte, []int) {
    61  	return file_keystore_keystore_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *GetDatabaseRequest) GetUsername() string {
    65  	if x != nil {
    66  		return x.Username
    67  	}
    68  	return ""
    69  }
    70  
    71  func (x *GetDatabaseRequest) GetPassword() string {
    72  	if x != nil {
    73  		return x.Password
    74  	}
    75  	return ""
    76  }
    77  
    78  type GetDatabaseResponse struct {
    79  	state         protoimpl.MessageState
    80  	sizeCache     protoimpl.SizeCache
    81  	unknownFields protoimpl.UnknownFields
    82  
    83  	// server_addr is the address of the gRPC server hosting the Database service
    84  	ServerAddr string `protobuf:"bytes,2,opt,name=server_addr,json=serverAddr,proto3" json:"server_addr,omitempty"`
    85  }
    86  
    87  func (x *GetDatabaseResponse) Reset() {
    88  	*x = GetDatabaseResponse{}
    89  	if protoimpl.UnsafeEnabled {
    90  		mi := &file_keystore_keystore_proto_msgTypes[1]
    91  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    92  		ms.StoreMessageInfo(mi)
    93  	}
    94  }
    95  
    96  func (x *GetDatabaseResponse) String() string {
    97  	return protoimpl.X.MessageStringOf(x)
    98  }
    99  
   100  func (*GetDatabaseResponse) ProtoMessage() {}
   101  
   102  func (x *GetDatabaseResponse) ProtoReflect() protoreflect.Message {
   103  	mi := &file_keystore_keystore_proto_msgTypes[1]
   104  	if protoimpl.UnsafeEnabled && x != nil {
   105  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   106  		if ms.LoadMessageInfo() == nil {
   107  			ms.StoreMessageInfo(mi)
   108  		}
   109  		return ms
   110  	}
   111  	return mi.MessageOf(x)
   112  }
   113  
   114  // Deprecated: Use GetDatabaseResponse.ProtoReflect.Descriptor instead.
   115  func (*GetDatabaseResponse) Descriptor() ([]byte, []int) {
   116  	return file_keystore_keystore_proto_rawDescGZIP(), []int{1}
   117  }
   118  
   119  func (x *GetDatabaseResponse) GetServerAddr() string {
   120  	if x != nil {
   121  		return x.ServerAddr
   122  	}
   123  	return ""
   124  }
   125  
   126  var File_keystore_keystore_proto protoreflect.FileDescriptor
   127  
   128  var file_keystore_keystore_proto_rawDesc = []byte{
   129  	0x0a, 0x17, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x74,
   130  	0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x74,
   131  	0x6f, 0x72, 0x65, 0x22, 0x4c, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
   132  	0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
   133  	0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
   134  	0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
   135  	0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
   136  	0x64, 0x22, 0x3c, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
   137  	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76,
   138  	0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73,
   139  	0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x32,
   140  	0x56, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x47,
   141  	0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1c, 0x2e, 0x6b, 0x65, 0x79,
   142  	0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
   143  	0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x74,
   144  	0x6f, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52,
   145  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75,
   146  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61,
   147  	0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   148  	0x2f, 0x70, 0x62, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72,
   149  	0x6f, 0x74, 0x6f, 0x33,
   150  }
   151  
   152  var (
   153  	file_keystore_keystore_proto_rawDescOnce sync.Once
   154  	file_keystore_keystore_proto_rawDescData = file_keystore_keystore_proto_rawDesc
   155  )
   156  
   157  func file_keystore_keystore_proto_rawDescGZIP() []byte {
   158  	file_keystore_keystore_proto_rawDescOnce.Do(func() {
   159  		file_keystore_keystore_proto_rawDescData = protoimpl.X.CompressGZIP(file_keystore_keystore_proto_rawDescData)
   160  	})
   161  	return file_keystore_keystore_proto_rawDescData
   162  }
   163  
   164  var file_keystore_keystore_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   165  var file_keystore_keystore_proto_goTypes = []interface{}{
   166  	(*GetDatabaseRequest)(nil),  // 0: keystore.GetDatabaseRequest
   167  	(*GetDatabaseResponse)(nil), // 1: keystore.GetDatabaseResponse
   168  }
   169  var file_keystore_keystore_proto_depIdxs = []int32{
   170  	0, // 0: keystore.Keystore.GetDatabase:input_type -> keystore.GetDatabaseRequest
   171  	1, // 1: keystore.Keystore.GetDatabase:output_type -> keystore.GetDatabaseResponse
   172  	1, // [1:2] is the sub-list for method output_type
   173  	0, // [0:1] is the sub-list for method input_type
   174  	0, // [0:0] is the sub-list for extension type_name
   175  	0, // [0:0] is the sub-list for extension extendee
   176  	0, // [0:0] is the sub-list for field type_name
   177  }
   178  
   179  func init() { file_keystore_keystore_proto_init() }
   180  func file_keystore_keystore_proto_init() {
   181  	if File_keystore_keystore_proto != nil {
   182  		return
   183  	}
   184  	if !protoimpl.UnsafeEnabled {
   185  		file_keystore_keystore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   186  			switch v := v.(*GetDatabaseRequest); i {
   187  			case 0:
   188  				return &v.state
   189  			case 1:
   190  				return &v.sizeCache
   191  			case 2:
   192  				return &v.unknownFields
   193  			default:
   194  				return nil
   195  			}
   196  		}
   197  		file_keystore_keystore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   198  			switch v := v.(*GetDatabaseResponse); i {
   199  			case 0:
   200  				return &v.state
   201  			case 1:
   202  				return &v.sizeCache
   203  			case 2:
   204  				return &v.unknownFields
   205  			default:
   206  				return nil
   207  			}
   208  		}
   209  	}
   210  	type x struct{}
   211  	out := protoimpl.TypeBuilder{
   212  		File: protoimpl.DescBuilder{
   213  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   214  			RawDescriptor: file_keystore_keystore_proto_rawDesc,
   215  			NumEnums:      0,
   216  			NumMessages:   2,
   217  			NumExtensions: 0,
   218  			NumServices:   1,
   219  		},
   220  		GoTypes:           file_keystore_keystore_proto_goTypes,
   221  		DependencyIndexes: file_keystore_keystore_proto_depIdxs,
   222  		MessageInfos:      file_keystore_keystore_proto_msgTypes,
   223  	}.Build()
   224  	File_keystore_keystore_proto = out.File
   225  	file_keystore_keystore_proto_rawDesc = nil
   226  	file_keystore_keystore_proto_goTypes = nil
   227  	file_keystore_keystore_proto_depIdxs = nil
   228  }